nethad / clustermeister

Clustermeister provides a framework for easy code execution and testing on remote and distributed Java Virtual Machines (JVM). Specifically it provides utilities to facilitate remote code deployment scenarios and an API to execute code on remote JVMs.
Apache License 2.0
6 stars 2 forks source link

Local provisioning: shutdown throws NPE. #48

Closed danielspicar closed 12 years ago

danielspicar commented 12 years ago

When starting the CLI in local mode and issuing shutdown as the first command a NullPointerException is thrown.

daniel@hermes:~/workspace/clustermeister/cli/target$ java -jar cli-0.1-SNAPSHOT.jar 24 May 2012 10:45:47,972 [INFO ][CLI]: Using configuration in /home/daniel/.clustermeister/configuration.yml 24 May 2012 10:45:47,977 [INFO ][CLI]: Using provider LOCAL 24 May 2012 10:45:47,995 [INFO ][PROVISIONING]: Policy file URL: jar:file:/home/daniel/workspace/clustermeister/cli/target/cli-0.1-SNAPSHOT.jar!/cm.policy 24 May 2012 10:45:48,104 [INFO ][PROVISIONING]: RmiServerForDriver bound 24 May 2012 10:45:48,111 [INFO ][PROVISIONING]: RmiServerForApi bound 24 May 2012 10:45:48,200 [INFO ][CLI]: start local setup. 24 May 2012 10:45:48,266 [INFO ][COMMON-NODE]: Waiting for UUID. 24 May 2012 10:45:49,266 [INFO ][COMMON-NODE]: driver process id: 7657 24 May 2012 10:45:49,267 [INFO ][COMMON-NODE]: JPPF Driver management initialized and listening on port 11198 24 May 2012 10:45:49,268 [INFO ][COMMON-NODE]: Got UUID=86EB731AAD5F470F98D1013D21977B9B. cm$ shutdown 24 May 2012 10:45:55,636 [INFO ][PROVISIONING]: Remove all nodes. 24 May 2012 10:45:55,761 [INFO ][jppf.client.AbstractGenericClient]: Connection [default-driver] created 24 May 2012 10:45:55,763 [INFO ][PROVISIONING]: Shutting down all nodes... [client: default-driver] Attempting connection to the class server at localhost:11111 24 May 2012 10:45:55,783 [INFO ][jppf.client.ClassServerDelegateImpl]: [client: default-driver] Attempting connection to the class server at localhost:11111 [client: default-driver] Reconnected to the class server 24 May 2012 10:45:55,814 [INFO ][jppf.client.ClassServerDelegateImpl]: [client: default-driver] Reconnected to the class server [client: default-driver] Attempting connection to the JPPF task server at localhost:11111 [client: default-driver] Reconnected to the JPPF task server 24 May 2012 10:45:55,991 [INFO ][PROVISIONING]: Job #SHUTDOWN_MARKER# completed. Exception: null java.lang.NullPointerException at com.github.nethad.clustermeister.provisioning.local.LocalNodeManager.shutdown(LocalNodeManager.java:83) at com.github.nethad.clustermeister.provisioning.local.LocalCommandLineEvaluation.shutdown(LocalCommandLineEvaluation.java:51) at com.github.nethad.clustermeister.provisioning.cli.Provisioning.commandShutdown(Provisioning.java:84) at com.github.nethad.clustermeister.provisioning.cli.UserInputEvaluation.commandMarshalling(UserInputEvaluation.java:109) at com.github.nethad.clustermeister.provisioning.cli.UserInputEvaluation.handleCommand(UserInputEvaluation.java:96) at com.github.nethad.clustermeister.provisioning.cli.UserInputEvaluation.evaluate(UserInputEvaluation.java:80) at com.github.nethad.clustermeister.provisioning.cli.ProvisioningCLI.startREPL(ProvisioningCLI.java:114) at com.github.nethad.clustermeister.provisioning.cli.ProvisioningCLI.startCLI(ProvisioningCLI.java:90) at com.github.nethad.clustermeister.provisioning.cli.ProvisioningCLI.main(ProvisioningCLI.java:57)

danielspicar commented 12 years ago

this has been resolved...