You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Sanjeev N (JIRA)" <ji...@apache.org> on 2013/02/28 07:45:45 UTC

[jira] [Closed] (CLOUDSTACK-1399) Unhandled exception executing api command: stopVirtualMachine

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjeev N closed CLOUDSTACK-1399.
---------------------------------


Verified on latest 4.1 build: commit ccc51147a54ff3d0362b233914c1580de52696c1

Test Passed.
                
> Unhandled exception executing api command: stopVirtualMachine
> -------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1399
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1399
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.1.0
>         Environment: Latest build from ASF 4.1
>            Reporter: Sanjeev N
>            Assignee: Min Chen
>            Priority: Blocker
>             Fix For: 4.1.0
>
>
> Unhandled exception executing api command: stopVirtualMachine
> Reproduction method:
> =================
> 1.Bring up CS in advanced zone
> 2.Deploy a guest vm 
> 3.Try to stop the guest vm when it is in running state
> Test Result:
> =========
> Failed to stop virtual machine
> Expected Result:
> =============
> Should be able to stop running virtual machine
> Observations:
> ==========
> API captured using firebug is:
> http://10.147.59.126:8080/client/api?command=stopVirtualMachine&id=ad67df22-46bb-44cf-ba96-99603e2109c7&forced=false&response=json&sessionkey=9wJy6QDJPVB%2F2Lap4pc%2BjZC8rzU%3D&_=1361878125916
> API response:
> { "stopvirtualmachineresponse" : {"errorcode":530,"cserrorcode":9999} }
> Obverved NPE in the management server log file:
> 2013-02-26 11:58:21,424 ERROR [cloud.api.ApiServer] (ApiServer-3:null) unhandled exception executing api command: stopVirtualMachine
> java.lang.NullPointerException
>         at com.cloud.dao.EntityManagerImpl.findById(EntityManagerImpl.java:47)
>         at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
>         at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:37)
>         at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
>         at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
>         at $Proxy132.findById(Unknown Source)
>         at com.cloud.api.ApiDispatcher.processParameters(ApiDispatcher.java:283)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:450)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:347)
>         at com.cloud.api.ApiServer.handle(ApiServer.java:283)
>         at org.apache.http.protocol.HttpService.doService(HttpService.java:375)
>         at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290)
>         at com.cloud.api.ApiServer$WorkerTask.run(ApiServer.java:956)
>         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)

--
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