Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E0FA10B00 for ; Wed, 3 Jul 2013 14:09:27 +0000 (UTC) Received: (qmail 82157 invoked by uid 500); 3 Jul 2013 14:09:27 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 82141 invoked by uid 500); 3 Jul 2013 14:09:27 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 82134 invoked by uid 500); 3 Jul 2013 14:09:27 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 82130 invoked by uid 99); 3 Jul 2013 14:09:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 14:09:27 +0000 Date: Wed, 3 Jul 2013 14:09:27 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-3184) updatevirtual machine api gives java NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-3184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13698998#comment-13698998 ] ASF subversion and git services commented on CLOUDSTACK-3184: ------------------------------------------------------------- Commit 31df729008c748e6eafe49ff86e1da618013c551 in branch refs/heads/master from [~sanjay.tripathi] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=31df729 ] CLOUDSTACK-3184: updateVirtualMachine api gives java NPE. Signed-off-by: Prasanna Santhanam > updatevirtual machine api gives java NPE > ---------------------------------------- > > Key: CLOUDSTACK-3184 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3184 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.2.0 > Environment: build: > CloudPlatform-4.2-117-rhel6.3 > Reporter: shweta agarwal > Assignee: Sanjay Tripathi > Priority: Blocker > Fix For: 4.2.0 > > > Repro steps: > This bug is not reproducible through CloudStack UI. Steps to reproduce this bug: > 1. Deploy a VM without passing any parameters in Name and Description (last step in deploy VM wizard). > 2. Stop this VM. > 3. Fire updateVIrtualMachine API without passing "displayName" parameter, you'll see NPE in MS logs. Do not try with UI because UI will pass displayName paramter with blank value. > Bug: > Hitting java NPE as soon as calling update virtual machine api > MS log snippet : > 2013-06-25 14:19:01,179 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START=== 10.147.59.212 -- GET apiKey=zU9ue1DN5vmeJW1FukFqGAXZinL5LM55YemhbQmX9dOiSf9C4nCx6nzPH7lcIIoxnqbKi7qOLU1OmcmPWTzCfw&command=updateVirtualMachine&id=9184d82e-916e-4651-b069-c2a12d757592&response=json&signature=NNrooPcd3nYvYj6Iqxz9SFLK7x4%3D > 2013-06-25 14:19:01,223 ERROR [cloud.api.ApiServer] (catalina-exec-15:null) unhandled exception executing api command: updateVirtualMachine > java.lang.NullPointerException > at com.cloud.vm.UserVmManagerImpl.updateVirtualMachine(UserVmManagerImpl.java:1776) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at org.apache.cloudstack.api.command.user.vm.UpdateVMCmd.execute(UpdateVMCmd.java:130) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:528) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371) > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304) > at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889) > at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721) > at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > 2013-06-25 14:19:01,227 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END=== 10.147.59.212 -- GET apiKey=zU9ue1DN5vmeJW1FukFqGAXZinL5LM55YemhbQmX9dOiSf9C4nCx6nzPH7lcIIoxnqbKi7qOLU1OmcmPWTzCfw&command=updateVirtualMachine&id=9184d82e-916e-4651-b069-c2a12d757592&response=json&signature=NNrooPcd3nYvYj6Iqxz9SFLK7x4%3D > 2013-06-25 14:19:01,934 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-9:null) SeqA 8-51555: Processing Seq 8-51555: { Cmd , MgmtId: -1, via: 8, Ver: v1, Flags: 11, [{"ConsoleProxyLoadReportCommand":{"_proxyVmId":4,"_loadInfo":"{\n \"connections\": []\n}","wait":0}}] } -- 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