cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3184) updatevirtual machine api gives java NPE
Date Wed, 03 Jul 2013 16:18:21 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699132#comment-13699132
] 

ASF subversion and git services commented on CLOUDSTACK-3184:
-------------------------------------------------------------

Commit 6b3257781173f11113596114c5b19366e72ffb46 in branch refs/heads/master-6-17-stable from
[~sanjay.tripathi]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=6b32577 ]

CLOUDSTACK-3184: updateVirtualMachine api gives java NPE.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 31df729008c748e6eafe49ff86e1da618013c551)

                
> 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

Mime
View raw message