ClassPath classpath = job.getSLA().getClassPath();for (String archiv : this.archives) { File jar = new File(modelDir, archiv); Location<String> location = new FileLocation(jar); // copy it in memory Location<byte[]> memLocation = location.copyTo(new MemoryLocation(jar.length())); // set the destination file on the node file system, for instance in "tmplib" under the node's root dir File destJar = new File("./tmplib/" + archiv); Location<String> destination = new FileLocation(destJar); classpath.add(archiv, memLocation, destination);}
log4j.logger.org.jppf.node.event.LifeCycleEventHandler=DEBUGlog4j.logger.org.jppf.utils.ServiceFinder=DEBUG
log4j.logger.org.jppf.node.classloader=DEBUG
log4j.logger.org.jppf.classloader=DEBUG
[lcohen@loloCentOS JPPF-4.0.2-node]$ ./startNode.shnode process id: 3574Attempting connection to the class server at 192.168.1.15:11111RemoteClassLoaderConnection: Reconnected to the class serverJPPF Node management initializedAttempting connection to the node server at 192.168.1.15:11111Reconnected to the node serverMyJobClassPathHandler installedNode successfully initializedcmdGen: begin of ExperimentcmdGen: begin of ExperimentcmdGen: begin of ExperimentcmdGen: begin of Experiment***** DESMO-J version 2.3.5 ***** Duration_Test starts at simulation time 07.01.2013 08:00:00:000 +0000 UTC. ...please wait...***** DESMO-J version 2.3.5 ***** Duration_Test starts at simulation time 07.01.2013 08:00:00:000 +0000 UTC. ...please wait...***** DESMO-J version 2.3.5 ***** Duration_Test starts at simulation time 07.01.2013 08:00:00:000 +0000 UTC. ...please wait...***** DESMO-J version 2.3.5 ***** Duration_Test starts at simulation time 07.01.2013 08:00:00:000 +0000 UTC. ...please wait...cmdGen: begin of Experiment***** DESMO-J version 2.3.5 ***** Duration_Test starts at simulation time 07.01.2013 08:00:00:000 +0000 UTC. ...please wait...Duration_Test stopped at simulation time 07.01.2013 17:00:00:000 +0000 UTC.cmdGen: End of Experiment
2014-04-14 08:38:02,181 [DEBUG][org.jppf.utils.JPPFDefaultUncaughtExceptionHandler.uncaughtException(44)]: Uncaught exception in thread Thread[Kunde2#1#2,5,Duration_Test] : java.lang.NullPointerException at desmoj.core.simulator.TimeInstant.isBefore(Unknown Source) at desmoj.core.simulator.EventTreeList.insertAsFirst(Unknown Source) at desmoj.core.simulator.Scheduler.scheduleAfter(Unknown Source) at desmoj.core.simulator.SimProcess.activateAfter(Unknown Source) at desmoj.core.advancedModellingFeatures.CondQueue.activateAsNext(Unknown Source) at desmoj.core.advancedModellingFeatures.CondQueue.signal(Unknown Source) at model.Duration_Test.Logic_EPK_AND$Epc__id_95_Event_Nein.lifecycle(Unknown Source) at model.Duration_Test.Master_Kunde2.lifeCycle(Unknown Source) at desmoj.core.simulator.SimThread.run(Unknown Source)
for(String archiv : this.archives){ File jar = new File(modelDir, archiv); Location<String> location = new FileLocation(jar); Location<byte[]> memLocation = new MemoryLocation(location.toByteArray()); Location<String> destination = new FileLocation("tmplib/" + archiv); classpath.add(archiv, memLocation, destination);}
One point that I not understand is that the transfered jars are stored in the current node directory as D:\tmplib\Daten-2013-11.jar, ... Why is it stored there and not in /tmplib ?