[ https://issues.apache.org/jira/browse/CLOUDSTACK-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei Zhou closed CLOUDSTACK-2857. -------------------------------- > DestroyVMCmd throwing NPE when vm is in Error state > --------------------------------------------------- > > Key: CLOUDSTACK-2857 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2857 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.2.0 > Reporter: prashant kumar mishra > Assignee: Wei Zhou > Priority: Minor > Fix For: 4.2.0 > > Attachments: logs.rar > > > when vm is in error state DestroyVMCmd throwing NPE > Step to reproduce > -------------------------- > 1-set GP "pool.storage.allocated.capacity.disablethreshold" to some low value; > 2-Try to deploy a vm > 3-vm deploy will fail because of step 1 , and vm will go in error state > Log > ------- > 2013-06-05 12:54:51,778 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-4:job-20) Executing > org.apache.cloudstack.api.command.user.vm.DestroyVMCmd for job-20 > 2013-06-05 12:54:51,851 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-4:job-20) Unexpected exception while executing > org.apache.cloudstack.api.command.user.vm.DestroyVMCmd > java.lang.NullPointerException > at > com.cloud.vm.UserVmManagerImpl.collectVmDiskStatistics(UserVmManagerImpl.java:3427) > at > com.cloud.vm.UserVmManagerImpl.destroyVm(UserVmManagerImpl.java:3383) > at > com.cloud.vm.UserVmManagerImpl.destroyVm(UserVmManagerImpl.java:1897) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.api.command.user.vm.DestroyVMCmd.execute(DestroyVMCmd.java:100) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at > com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-06-05 12:54:51,853 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-4:job-20) Complete async job-20, jobStatus: 2, resultCode: 530, > result: Error Code: 530 Error text: null -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira