AndreaGHG opened a new issue #3164: Cannot open console: ConsoleProxyServlet 
NullPointerException
URL: https://github.com/apache/cloudstack/issues/3164
 
 
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Console proxy
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.11.2.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   N/A
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   CentOS 7.6.1810
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   I've upgraded CloudStack from version 4.9.3.1 to ver. 4.11.2.0 on CentOS 
7.6.1810. I use VMWare as hypervisor with system VM images and CS package from 
Shape Blue.
   From VM console in Console Proxy's VM console I can see version 4.11.2.0 
banner, so the system VM look upgraded.
   Since the upgrade when I try to open an instance's console I get a "Server 
Internal Error" message inside the new window. In the management server log I'm 
getting this exception:
   
   ERROR [c.c.s.ConsoleProxyServlet] (qtp510113906-18:null) (logid Unexepected 
exception in ConsoleProxyServlet
   java.lang.NullPointerException
   at 
com.cloud.info.ConsoleProxyInfo.formatProxyAddress(ConsoleProxyInfo.java:59)
   at com.cloud.info.ConsoleProxyInfo.<init>(ConsoleProxyInfo.java:40)
   at 
com.cloud.consoleproxy.ConsoleProxyManagerImpl.assignProxy(ConsoleProxyManagerImpl.java:389)
   at 
com.cloud.server.ManagementServerImpl.getConsoleProxyForVm(ManagementServerImpl.java:2274)
   at 
com.cloud.server.ManagementServerImpl.getConsoleAccessUrlRoot(ManagementServerImpl.java:2305)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
   at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
   at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
   at com.sun.proxy.$Proxy193.getConsoleAccessUrlRoot(Unknown Source)
   at 
com.cloud.servlet.ConsoleProxyServlet.handleAccessRequest(ConsoleProxyServlet.java:275)
   at com.cloud.servlet.ConsoleProxyServlet.doGet(ConsoleProxyServlet.java:188)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:686)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
   at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
   at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
   at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
   at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
   at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
   at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
   at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
   at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
   at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
   at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
   at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
   at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   at 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527)
   at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
   at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
   at org.eclipse.jetty.server.Server.handle(Server.java:530)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
   at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
   at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
   at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
   at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
   at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
   at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
   at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
   at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
   at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
   at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
   at java.lang.Thread.run(Thread.java:748)
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   
   ~~~
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to