Michael Ihle created CLOUDSTACK-10410:
-----------------------------------------
Summary: Unexpected Error when creating VM Snapshot on stopped VM
Key: CLOUDSTACK-10410
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10410
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Affects Versions: 4.11
Environment: CloudStack version 4.11.2
Reporter: Michael Ihle
Cannot create VM Snapshot on stopped VM. Once the VM starts, the VM snapshot
works.
This is occurring with Xen Hypervisor. Unexpected error in the UI caused by an
NPE from this line:
VMSnapshotManagerImpl.orchestrateCreateVMSnapshot
_jobMgr.marshallResultObject(new Long(snapshot.getId()))); <==NPE
>From the Logs:
2019-09-05 17:58:01,652 ERROR [c.c.a.ApiAsyncJobDispatcher]
(API-Job-Executor-79:ctx-e46e6eeb job-2563) (logid:e230b770) Unexpected
exception while executing
org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd
java.lang.RuntimeException: Unexpected exception
at
com.cloud.vm.snapshot.VMSnapshotManagerImpl.createVMSnapshot(VMSnapshotManagerImpl.java:482)
...
Caused by: java.lang.NullPointerException
at
com.cloud.vm.snapshot.VMSnapshotManagerImpl.orchestrateCreateVMSnapshot(VMSnapshotManagerImpl.java:1199)
at sun.reflect.GeneratedMethodAccessor772.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
--
This message was sent by Atlassian Jira
(v8.3.2#803003)