jppf-grid / JPPF

The open source grid computing solution
https://www.jppf.org
Apache License 2.0
65 stars 12 forks source link

JPPF 5.9 - java.io.EOFException #6

Open pparthenhs opened 4 years ago

pparthenhs commented 4 years ago

I am using Dockerized version of JPPF 5.2.9. The driver is working perfectly but the nodes cannot connect successfully.

In more details on jppf-node:

  1. On docker logs
    node process id: 35, uuid: BFBA493E-B1B7-3A43-1E52-8C1B5CB326FF
    Attempting connection to the class server at 212.101.173.60:11111
    RemoteClassLoaderConnection: Reconnected to the class server
    JPPF Node management initialized on port 12001
    Attempting connection to the node server at 212.101.173.60:11111
    Reconnected to the node server
    Node successfully initialized
    resetting with stopJmx=true
    resetting with stopJmx=true
    node process id: 35, uuid: BFBA493E-B1B7-3A43-1E52-8C1B5CB326FF
    ... (again and again)
  2. On jppf-node.logs
    2020-03-06 15:39:17,561 [INFO ][org.jppf.classloader.ClassLoaderRequestHandler.run(156)]: maxBatchSize = 1
    2020-03-06 15:39:17,569 [INFO ][org.jppf.execute.AbstractExecutionManager.<init>(111)]: running 1 processing thread
    2020-03-06 15:39:17,569 [INFO ][org.jppf.execute.AbstractExecutionManager.createThreadManager(137)]: Using default thread manager
    2020-03-06 15:39:17,646 [ERROR][org.jppf.server.node.JPPFNode.run(143)]: could only read 0 bytes out of 4
    java.io.EOFException: could only read 0 bytes out of 4
    at org.jppf.serialization.SerializationUtils.readToBuf(SerializationUtils.java:453)
    at org.jppf.serialization.SerializationUtils.readInt(SerializationUtils.java:259)
    at org.jppf.comm.socket.AbstractSocketWrapper.readInt(AbstractSocketWrapper.java:241)
    at org.jppf.io.SocketWrapperInputSource.readInt(SocketWrapperInputSource.java:85)
    at org.jppf.io.IOHelper.readData(IOHelper.java:110)
    at org.jppf.io.IOHelper.unwrappedData(IOHelper.java:188)
    at org.jppf.server.node.remote.RemoteNodeIO.deserializeObjects(RemoteNodeIO.java:70)
    at org.jppf.server.node.AbstractNodeIO.readObjects(AbstractNodeIO.java:108)
    at org.jppf.server.node.AbstractNodeIO.readTask(AbstractNodeIO.java:82)
    at org.jppf.server.node.JPPFNode.processNextJob(JPPFNode.java:194)
    at org.jppf.server.node.JPPFNode.perform(JPPFNode.java:177)
    at org.jppf.server.node.JPPFNode.run(JPPFNode.java:137)
    at org.jppf.node.NodeRunner.main(NodeRunner.java:144)
    2020-03-06 15:39:17,649 [WARN ][org.jppf.classloader.AbstractClassLoaderConnection.sendCloseChannelCommand(105)]: error sending close channel command : java.io.EOFException: could only read 0 bytes out of 4

In other hand on jppf-driver

  1. On docker logs

    driver process id: 29, uuid: 797C5F7B-E187-6F5B-D74F-D4D5BD8C8B44
    ClientClassServer initialized
    NodeClassServer initialized
    ClientJobServer initialized
    NodeJobServer initialized
    management initialized and listening on port 11198
    Acceptor initialized
    -  accepting plain connections on port 11111
    - accepting secure connections on port 11443
    JPPF Driver initialization complete
  2. On jppf-driver.logs

    2020-03-06 15:49:25,012 [WARN ][org.jppf.nio.StateTransitionTask.run(89)]: error on channel SelectionKeyWrapper[id=1272, readyOps=1, interestOps=0, context=RemoteNodeContext[channel=SelectionKeyWrapper[id=1272], state=WAIT_INITIAL_BUNDLE, uuid=BFBA493E-B1B7-3A43-1E52-8C1B5CB326FF, connectionUuid=null, peer=false, ssl=false]] : java.lang.ArrayIndexOutOfBoundsException: 1

The most recent ISSUE I found is the following but I am not sure if that is still relevant https://www.jppf.org/forums/index.php?topic=7930.0

Any ideas or suggestions are welcome.