Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 460BBEF38 for ; Tue, 26 Feb 2013 11:38:15 +0000 (UTC) Received: (qmail 64614 invoked by uid 500); 26 Feb 2013 11:38:13 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 64437 invoked by uid 500); 26 Feb 2013 11:38:13 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 64405 invoked by uid 99); 26 Feb 2013 11:38:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 11:38:12 +0000 Date: Tue, 26 Feb 2013 11:38:12 +0000 (UTC) From: "Sanjeev N (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-1399) Unhandled exception executing api command: stopVirtualMachine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sanjeev N created CLOUDSTACK-1399: ------------------------------------- Summary: 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 Priority: Critical 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