[jira] [Commented] (CLOUDSTACK-8237) add nic with instance throw java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315328#comment-14315328 ] Star Guo commented on CLOUDSTACK-8237: -- Hi, Are there any one meet this issue? Thanks. Best Regards, Star Guo -邮件原件- 发件人: Star Guo (JIRA) [mailto:j...@apache.org] 发送时间: 2015年2月10日 20:45 收件人: cloudstack-iss...@incubator.apache.org 主题: [jira] [Created] (CLOUDSTACK-8237) add nic with instance throw java.lang.NullPointerException Star Guo created CLOUDSTACK-8237: Summary: add nic with instance throw java.lang.NullPointerException Key: CLOUDSTACK-8237 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8237 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Affects Versions: 4.4.3 Environment: CentOS 7 which Java 1.7.0_75, Running simulator/ Reporter: Star Guo In simulator env, I create a serviceoffering with cpu&mem custom , and deploy an instance with this serviceoffering. After that, I add nic on this instance and throw this issus: WARN [c.c.u.d.Merovingian2] (API-Job-Executor-2:ctx-abcb085b job-26 ctx-c85611f5) Was unable to find lock for the key vm_instance6 and thread id 2089552368 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-2:ctx-754aeed8 job-26/job-27) Add job-27 into job monitoring ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:ctx-754aeed8 job-26/job-27 ctx-26199438) Invocation exception, caused by: java.lang.NullPointerException INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:ctx-754aeed8 job-26/job-27 ctx-26199438) Rethrow exception java.lang.NullPointerException ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-2:ctx-754aeed8 job-26/job-27) Unable to complete AsyncJobVO {id:27, userId: 2, accountId: 2, instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkAddVmToNetwork, cmdInfo: rO0ABXNyACFjb20uY2xv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vcmsvTmV0d29ya3MkTW9kZTtMAARuYW1lcQB-AARMAAduZXRtYXNrcQB-AARMAAtuZXR3b3JrUmF0ZXEAfgANTAANcmVxdWVzdGVkSXB2NHEAfgAETAANcmVxdWVzdGVkSXB2NnEAfgAETAANcmVzZXJ2YXRpb25JZHEAfgAETAAIc3RyYXRlZ3l0ACZMY29tL2Nsb3VkL3ZtL05pYyRSZXNlcnZhdGlvblN0cmF0ZWd5O0wAC3RyYWZmaWNUeXBldAAoTGNvbS9jbG91ZC9uZXR3b3JrL05ldHdvcmtzJFRyYWZmaWNUeXBlO0wABHV1aWRxAH4ABHhwAABwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBw, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 8796758677527, completeMsid: null, lastUpdated: null, lastPolled: null, created: Tue Feb 10 07:20:35 EST 2015}, job origin:26 java.lang.NullPointerException at com.cloud.hypervisor.HypervisorGuruBase.toVirtualMachineTO(HypervisorGuruBase.java:125) at com.cloud.simulator.SimulatorGuru.implement(SimulatorGuru.java:46) at com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:3467) at com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:5288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107) at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5346) at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102) at org.apache.cloudstack.fra
[jira] [Commented] (CLOUDSTACK-8237) add nic with instance throw java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15279944#comment-15279944 ] sunilmallela commented on CLOUDSTACK-8237: -- We are getting same issue, getting below error from management server. We are using CloudPlatform 4.5. * 2016-05-11 13:01:46,748 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-136:ctx-572e19e0 job-85682/job-85683 ctx-e8d400da) (logid:2b768952) Invocation exception, caused by: java.lang.NullPointerException 2016-05-11 13:01:46,757 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-136:ctx-572e19e0 job-85682/job-85683 ctx-e8d400da) (logid:2b768952) Rethrow exception java.lang.NullPointerException 2016-05-11 13:01:46,757 DEBUG [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-136:ctx-572e19e0 job-85682/job-85683) (logid:2b768952) Done with run of VM work job: com.cloud.vm.VmWorkAddVmToNetwork for VM 518, job origin: 85682 * Solution: Stop the instance and start it from UI. Why this issue is occurring and what is the best solution. > add nic with instance throw java.lang.NullPointerException > --- > > Key: CLOUDSTACK-8237 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8237 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) >Affects Versions: 4.4.3 > Environment: CentOS 7 which Java 1.7.0_75, Running simulator/ >Reporter: Star Guo > > In simulator env, I create a serviceoffering with cpu&mem custom , and deploy > an instance with this serviceoffering. After that, I add nic on this instance > and throw this issus: > > WARN [c.c.u.d.Merovingian2] (API-Job-Executor-2:ctx-abcb085b job-26 > ctx-c85611f5) Was unable to find lock for the key vm_instance6 and thread id > 2089552368 > INFO [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27) Add job-27 into job monitoring > ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27 ctx-26199438) Invocation exception, caused by: > java.lang.NullPointerException > INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27 ctx-26199438) Rethrow exception java.lang.NullPointerException > ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27) Unable to complete AsyncJobVO {id:27, userId: 2, accountId: 2, > instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkAddVmToNetwork, > cmdInfo: > rO0ABXNyACFjb20uY2xvdWQudm0uVm1Xb3JrQWRkVm1Ub05ldHdvcmt6-m3bkApgrQIAAkwACW5ldHdvcmtJZHQAEExqYXZhL2xhbmcvTG9uZztMABJyZXF1c3RlZE5pY1Byb2ZpbGV0ABlMY29tL2Nsb3VkL3ZtL05pY1Byb2ZpbGU7eHIAE2NvbS5jbG91ZC52bS5WbVdvcmufmbZW8CVnawIABEoACWFjY291bnRJZEoABnVzZXJJZEoABHZtSWRMAAtoYW5kbGVyTmFtZXQAEkxqYXZhL2xhbmcvU3RyaW5nO3hwAAIAAgAGdAAZVmlydHVhbE1hY2hpbmVNYW5hZ2VySW1wbHNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAzXNyABdjb20uY2xvdWQudm0uTmljUHJvZmlsZUVY7kYs6AbAAgAeWgAKZGVmYXVsdE5pY0oAAmlkWgAWaXNTZWN1cml0eUdyb3VwRW5hYmxlZEoACW5ldHdvcmtJZEoABHZtSWRMAA1icm9hZGNhc3RUeXBldAAwTGNvbS9jbG91ZC9uZXR3b3JrL05ldHdvcmtzJEJyb2FkY2FzdERvbWFpblR5cGU7TAAMYnJvYWRjYXN0VXJpdAAOTGphdmEvbmV0L1VSSTtMAAhkZXZpY2VJZHQAE0xqYXZhL2xhbmcvSW50ZWdlcjtMAARkbnMxcQB-AARMAARkbnMycQB-AARMAAZmb3JtYXR0ACpMY29tL2Nsb3VkL25ldHdvcmsvTmV0d29ya3MkQWRkcmVzc0Zvcm1hdDtMAAdnYXRld2F5cQB-AARMAAppcDRBZGRyZXNzcQB-AARMAAppcDZBZGRyZXNzcQB-AARMAAdpcDZDaWRycQB-AARMAAdpcDZEbnMxcQB-AARMAAdpcDZEbnMycQB-AARMAAppcDZHYXRld2F5cQB-AARMAAxpc29sYXRpb25VcmlxAH4ADEwACm1hY0FkZHJlc3NxAH4ABEwABG1vZGV0ACFMY29tL2Nsb3VkL25ldHdvcmsvTmV0d29ya3MkTW9kZTtMAARuYW1lcQB-AARMAAduZXRtYXNrcQB-AARMAAtuZXR3b3JrUmF0ZXEAfgANTAANcmVxdWVzdGVkSXB2NHEAfgAETAANcmVxdWVzdGVkSXB2NnEAfgAETAANcmVzZXJ2YXRpb25JZHEAfgAETAAIc3RyYXRlZ3l0ACZMY29tL2Nsb3VkL3ZtL05pYyRSZXNlcnZhdGlvblN0cmF0ZWd5O0wAC3RyYWZmaWNUeXBldAAoTGNvbS9jbG91ZC9uZXR3b3JrL05ldHdvcmtzJFRyYWZmaWNUeXBlO0wABHV1aWRxAH4ABHhwAABwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBw, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 8796758677527, completeMsid: null, lastUpdated: null, > lastPolled: null, created: Tue Feb 10 07:20:35 EST 2015}, job origin:26 > java.lang.NullPointerException > at > com.cloud.hypervisor.HypervisorGuruBase.toVirtualMachineTO(HypervisorGuruBase.java:125) > at com.cloud.simulator.SimulatorGuru.implement(SimulatorGuru.java:46) > at > com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:3467) > at > com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:5288) > at sun.reflect.NativeMet
[jira] [Commented] (CLOUDSTACK-8237) add nic with instance throw java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15279961#comment-15279961 ] sunilmallela commented on CLOUDSTACK-8237: -- This error is getting when adding second network (Interface) to a VM. > add nic with instance throw java.lang.NullPointerException > --- > > Key: CLOUDSTACK-8237 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8237 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) >Affects Versions: 4.4.3 > Environment: CentOS 7 which Java 1.7.0_75, Running simulator/ >Reporter: Star Guo > > In simulator env, I create a serviceoffering with cpu&mem custom , and deploy > an instance with this serviceoffering. After that, I add nic on this instance > and throw this issus: > > WARN [c.c.u.d.Merovingian2] (API-Job-Executor-2:ctx-abcb085b job-26 > ctx-c85611f5) Was unable to find lock for the key vm_instance6 and thread id > 2089552368 > INFO [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27) Add job-27 into job monitoring > ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27 ctx-26199438) Invocation exception, caused by: > java.lang.NullPointerException > INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27 ctx-26199438) Rethrow exception java.lang.NullPointerException > ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-2:ctx-754aeed8 > job-26/job-27) Unable to complete AsyncJobVO {id:27, userId: 2, accountId: 2, > instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkAddVmToNetwork, > cmdInfo: > rO0ABXNyACFjb20uY2xvdWQudm0uVm1Xb3JrQWRkVm1Ub05ldHdvcmt6-m3bkApgrQIAAkwACW5ldHdvcmtJZHQAEExqYXZhL2xhbmcvTG9uZztMABJyZXF1c3RlZE5pY1Byb2ZpbGV0ABlMY29tL2Nsb3VkL3ZtL05pY1Byb2ZpbGU7eHIAE2NvbS5jbG91ZC52bS5WbVdvcmufmbZW8CV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kL3ZtL05pYyRSZXNlcnZhdGlvblN0cmF0ZWd5O0wAC3RyYWZmaWNUeXBldAAoTGNvbS9jbG91ZC9uZXR3b3JrL05ldHdvcmtzJFRyYWZmaWNUeXBlO0wABHV1aWRxAH4ABHhwAABwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBw, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 8796758677527, completeMsid: null, lastUpdated: null, > lastPolled: null, created: Tue Feb 10 07:20:35 EST 2015}, job origin:26 > java.lang.NullPointerException > at > com.cloud.hypervisor.HypervisorGuruBase.toVirtualMachineTO(HypervisorGuruBase.java:125) > at com.cloud.simulator.SimulatorGuru.implement(SimulatorGuru.java:46) > at > com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:3467) > at > com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:5288) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107) > at > com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5346) > at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102) > at > org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:501) > at > org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable