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

Kishan Kavala resolved CLOUDSTACK-7253.
---------------------------------------
    Resolution: Fixed

> [LXC]getting java NPE server internal error on accessing console view of VM
> ---------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7253
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7253
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: KVM
>    Affects Versions: 4.5.0
>            Reporter: shweta agarwal
>            Assignee: Kishan Kavala
>             Fix For: 4.5.0
>
>
> Repro step:
> createa LXC VM and try accessing its console
> Bug:
> gets internal server error
> MS log shows:
> 014-08-05 06:46:25,902 DEBUG [c.c.a.m.AgentManagerImpl] 
> (AgentManager-Handler-13:null) Ping from 3
> 2014-08-05 06:46:26,487 DEBUG [c.c.a.m.AgentManagerImpl] 
> (AgentManager-Handler-10:null) SeqA 2-46206: Processing Seq 2-46206:  { Cmd , 
> MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":1,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2014-08-05 06:46:26,599 DEBUG [c.c.a.m.AgentManagerImpl] 
> (AgentManager-Handler-10:null) SeqA 2-46206: Sending Seq 2-46206:  { Ans: , 
> MgmtId: 233845177509765, via: 2, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2014-08-05 06:46:27,652 WARN  [o.a.c.f.j.AsyncJobExecutionContext] 
> (catalina-exec-6:null) Job is executed without a context, setup psudo job for 
> the executing thread
> 2014-08-05 06:46:27,718 DEBUG [c.c.a.t.Request] 
> (catalina-exec-6:ctx-857528e3) Seq 1-8575416640466847185: Sending  { Cmd , 
> MgmtId: 233845177509765, via: 1(Rack1Pod1Host23), Ver: v1, Flags: 100011, 
> [{"com.cloud.agent.api.GetVncPortCommand":{"id":16,"name":"i-2-16-VM","wait":0}}]
>  }
> 2014-08-05 06:46:27,769 DEBUG [c.c.a.t.Request] (AgentManager-Handler-9:null) 
> Seq 1-8575416640466847185: Processing:  { Ans: , MgmtId: 233845177509765, 
> via: 1, Ver: v1, Flags: 10, 
> [{"com.cloud.agent.api.Answer":{"result":false,"details":"java.lang.NullPointerException\n\tat
>  
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2861)\n\tat
>  
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1296)\n\tat
>  com.cloud.agent.Agent.processRequest(Agent.java:501)\n\tat 
> com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:808)\n\tat 
> com.cloud.utils.nio.Task.run(Task.java:84)\n\tat 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)\n\tat
>  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)\n\tat
>  java.lang.Thread.run(Thread.java:722)\n","wait":0}}] }
> 2014-08-05 06:46:27,769 DEBUG [c.c.a.t.Request] 
> (catalina-exec-6:ctx-857528e3) Seq 1-8575416640466847185: Received:  { Ans: , 
> MgmtId: 233845177509765, via: 1, Ver: v1, Flags: 10, { Answer } }
> 2014-08-05 06:46:27,769 DEBUG [c.c.a.m.AgentManagerImpl] 
> (catalina-exec-6:ctx-857528e3) Details from executing class 
> com.cloud.agent.api.GetVncPortCommand: java.lang.NullPointerException
>         at 
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2861)
>         at 
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1296)
>         at com.cloud.agent.Agent.processRequest(Agent.java:501)
>         at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:808)
>         at com.cloud.utils.nio.Task.run(Task.java:84)
>         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:722)
> 2014-08-05 06:46:27,769 ERROR [c.c.s.ConsoleProxyServlet] 
> (catalina-exec-6:ctx-857528e3) Unexepected exception in ConsoleProxyServlet
> java.lang.ClassCastException: com.cloud.agent.api.Answer cannot be cast to 
> com.cloud.agent.api.GetVncPortAnswer
>         at 
> com.cloud.server.ManagementServerImpl.getVncPort(ManagementServerImpl.java:2206)
>         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:601)
>         at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>         at $Proxy213.getVncPort(Unknown Source)
>         at 
> com.cloud.servlet.ConsoleProxyServlet.composeConsoleAccessUrl(ConsoleProxyServlet.java:412)
>         at 
> com.cloud.servlet.ConsoleProxyServlet.handleAccessRequest(ConsoleProxyServlet.java:281)
>         at 
> com.cloud.servlet.ConsoleProxyServlet.doGet(ConsoleProxyServlet.java:185)
>         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:2268)
>         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:722)
> 2014-08-05 06:46:32,911 DEBUG [c.c.n.l.LBHealthCheckManag



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to