java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • VHM is not working with latest Serengeti build "VMware-Serengeti-0.8.1.0-1110315_OVF10.ova", which has /opt/serengeti/vhm/elastic-runtime2-0.0.1-SNAPSHOT-jar-with-dependencies.jar. I deployed the Serengeti vApp and deployed a Hadoop cluster . then tried running the command {noformat} cluster setElasticity --name vhmtest --targetComputeNodeNum 3 --mode manual {noformat} It was hanging for long time , while investigating I found NPE in vhm.log {noformat} 2013 Apr 26 19:55:01.490 [MQClientImpl-RabbitAdaptor] New Serengeti limit event placed on queue 2013 Apr 26 19:55:01.491 [MQClientImpl-RabbitAdaptor] Rabbit queue waiting for message 2013 Apr 26 19:55:02.420 [VHM_Main_Thread-VcVlsi] Unexpected exception in getVMsInFolder java.lang.NullPointerException at com.vmware.vhadoop.vhm.vc.VcVlsi.findObjectsInFolder(VcVlsi.java:392) at com.vmware.vhadoop.vhm.vc.VcVlsi.getVMsInFolder(VcVlsi.java:697) at com.vmware.vhadoop.vhm.vc.VcAdapter.listVMsInFolder(VcAdapter.java:153) at com.vmware.vhadoop.vhm.VHM.getClusterIdForVCFolder(VHM.java:177) at com.vmware.vhadoop.vhm.VHM.completeClusterScaleEventDetails(VHM.java:187) at com.vmware.vhadoop.vhm.VHM.getScaleEventsForCluster(VHM.java:217) at com.vmware.vhadoop.vhm.VHM.handleEvents(VHM.java:286) at com.vmware.vhadoop.vhm.VHM.access$200(VHM.java:21) at com.vmware.vhadoop.vhm.VHM$1.run(VHM.java:305) at java.lang.Thread.run(Thread.java:636) Exception in thread "VHM_Main_Thread" java.lang.NullPointerException at com.vmware.vhadoop.vhm.ClusterMapImpl.getClusterIdFromVMsInFolder(ClusterMapImpl.java:287) at com.vmware.vhadoop.vhm.VHM.getClusterIdForVCFolder(VHM.java:178) at com.vmware.vhadoop.vhm.VHM.completeClusterScaleEventDetails(VHM.java:187) at com.vmware.vhadoop.vhm.VHM.getScaleEventsForCluster(VHM.java:217) at com.vmware.vhadoop.vhm.VHM.handleEvents(VHM.java:286) at com.vmware.vhadoop.vhm.VHM.access$200(VHM.java:21) at com.vmware.vhadoop.vhm.VHM$1.run(VHM.java:305) at java.lang.Thread.run(Thread.java:636) {noformat}
    via by Rajit Saha,
  • VHM is not working with latest Serengeti build "VMware-Serengeti-0.8.1.0-1110315_OVF10.ova", which has /opt/serengeti/vhm/elastic-runtime2-0.0.1-SNAPSHOT-jar-with-dependencies.jar. I deployed the Serengeti vApp and deployed a Hadoop cluster . then tried running the command {noformat} cluster setElasticity --name vhmtest --targetComputeNodeNum 3 --mode manual {noformat} It was hanging for long time , while investigating I found NPE in vhm.log {noformat} 2013 Apr 26 19:55:01.490 [MQClientImpl-RabbitAdaptor] New Serengeti limit event placed on queue 2013 Apr 26 19:55:01.491 [MQClientImpl-RabbitAdaptor] Rabbit queue waiting for message 2013 Apr 26 19:55:02.420 [VHM_Main_Thread-VcVlsi] Unexpected exception in getVMsInFolder java.lang.NullPointerException at com.vmware.vhadoop.vhm.vc.VcVlsi.findObjectsInFolder(VcVlsi.java:392) at com.vmware.vhadoop.vhm.vc.VcVlsi.getVMsInFolder(VcVlsi.java:697) at com.vmware.vhadoop.vhm.vc.VcAdapter.listVMsInFolder(VcAdapter.java:153) at com.vmware.vhadoop.vhm.VHM.getClusterIdForVCFolder(VHM.java:177) at com.vmware.vhadoop.vhm.VHM.completeClusterScaleEventDetails(VHM.java:187) at com.vmware.vhadoop.vhm.VHM.getScaleEventsForCluster(VHM.java:217) at com.vmware.vhadoop.vhm.VHM.handleEvents(VHM.java:286) at com.vmware.vhadoop.vhm.VHM.access$200(VHM.java:21) at com.vmware.vhadoop.vhm.VHM$1.run(VHM.java:305) at java.lang.Thread.run(Thread.java:636) Exception in thread "VHM_Main_Thread" java.lang.NullPointerException at com.vmware.vhadoop.vhm.ClusterMapImpl.getClusterIdFromVMsInFolder(ClusterMapImpl.java:287) at com.vmware.vhadoop.vhm.VHM.getClusterIdForVCFolder(VHM.java:178) at com.vmware.vhadoop.vhm.VHM.completeClusterScaleEventDetails(VHM.java:187) at com.vmware.vhadoop.vhm.VHM.getScaleEventsForCluster(VHM.java:217) at com.vmware.vhadoop.vhm.VHM.handleEvents(VHM.java:286) at com.vmware.vhadoop.vhm.VHM.access$200(VHM.java:21) at com.vmware.vhadoop.vhm.VHM$1.run(VHM.java:305) at java.lang.Thread.run(Thread.java:636) {noformat}
    via by Rajit Saha,
    • java.lang.NullPointerException at com.vmware.vhadoop.vhm.vc.VcVlsi.findObjectsInFolder(VcVlsi.java:392) at com.vmware.vhadoop.vhm.vc.VcVlsi.getVMsInFolder(VcVlsi.java:697) at com.vmware.vhadoop.vhm.vc.VcAdapter.listVMsInFolder(VcAdapter.java:153) at com.vmware.vhadoop.vhm.VHM.getClusterIdForVCFolder(VHM.java:177) at com.vmware.vhadoop.vhm.VHM.completeClusterScaleEventDetails(VHM.java:187) at com.vmware.vhadoop.vhm.VHM.getScaleEventsForCluster(VHM.java:217) at com.vmware.vhadoop.vhm.VHM.handleEvents(VHM.java:286) at com.vmware.vhadoop.vhm.VHM.access$200(VHM.java:21) at com.vmware.vhadoop.vhm.VHM$1.run(VHM.java:305) at java.lang.Thread.run(Thread.java:636)
    No Bugmate found.