cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alena Prokharchyk (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-1981) NPE's when accessing Management server while its coming up
Date Thu, 23 May 2013 00:03:20 GMT

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

Alena Prokharchyk resolved CLOUDSTACK-1981.
-------------------------------------------

    Resolution: Won't Fix

Resolving the issue as won't fix. There is no way to verify the login credentials when Account
related components are not fully loaded. As long as you can't login with incorrect credentials,
its fine. Seeing NPEs in the log is harmless.
                
> NPE's when accessing Management server while its coming up
> ----------------------------------------------------------
>
>                 Key: CLOUDSTACK-1981
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1981
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>            Reporter: Sailaja Mada
>             Fix For: 4.2.0
>
>
> Setup: Advanced Networking Zone with Xen 6.1 
> MS:  Rhel 6.3
> Steps:
> 1. Stop Management Server [service cloudstack-management stop]
> 2. Start Management server[service cloudstack-management start]
> 3. Try to access Management server before its completely up 
> Observation:
> NPE's observed while accessing Management server while its coming up.
> 2013-04-09 12:09:20,059 INFO  [utils.component.ComponentContext] (main:null) Setup Spring
Application context
> 2013-04-09 12:09:21,173 DEBUG [utils.crypt.EncryptionSecretKeyChecker] (main:null) Encryption
Type: file
> 2013-04-09 12:09:32,919 INFO  [cloud.serializer.GsonHelper] (main:null) Default Builder
inited.
> 2013-04-09 12:09:34,681 INFO  [cloudstack.discovery.ApiDiscoveryServiceImpl] (main:null)
Api Discovery Service: Annotation, docstrings, api relation graph processed in 433.244444
ms
> 2013-04-09 12:09:35,752 INFO  [cloud.api.ApiServer] (Thread-7:null) ApiServer listening
on port 8096
> 2013-04-09 12:09:36,938 INFO  [hypervisor.vmware.VmwareServerDiscoverer] (main:null)
VmwareServerDiscoverer is constructed
> 2013-04-09 12:09:37,327 INFO  [web.context.ContextLoader] (main:null) Root WebApplicationContext:
initialization completed in 24721 ms
> 2013-04-09 12:09:37,357 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration
found at /etc/cloudstack/management/log4j-cloud.xml
> 2013-04-09 12:09:37,392 INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor]
(main:null) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
> 2013-04-09 12:09:37,947 INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor]
(catalina-exec-1:null) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
> 2013-04-09 12:09:38,031 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===START===
 10.144.6.39 -- GET  command=listVirtualMachines&response=json&sessionkey=PDaiFIZwxuXdaa%2FO9yAL2wwo4C4%3D&listAll=true&page=1&pagesize=20&_=1365489683621
> 2013-04-09 12:09:38,054 ERROR [cloud.api.ApiServlet] (catalina-exec-1:null) unknown exception
writing api response
> java.lang.NullPointerException
>         at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:279)
>         at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:142)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:238)
>         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: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:679)
> 2013-04-09 12:09:38,077 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===END===
 10.144.6.39 -- GET  command=listVirtualMachines&response=json&sessionkey=PDaiFIZwxuXdaa%2FO9yAL2wwo4C4%3D&listAll=true&page=1&pagesize=20&_=1365489683621
> 2013-04-09 12:10:08,985 INFO  [web.context.ContextLoader] (main:null) Root WebApplicationContext:
initialization started
> 2013-04-09 12:10:09,198 INFO  [context.support.XmlWebApplicationContext] (main:null)
Refreshing Root WebApplicationContext: startup date [Tue Apr 09 12:10:09 IST 2013]; root of
context hierarchy
> 2013-04-09 12:08:08,515 INFO  [cloud.serializer.GsonHelper] (main:null) Default Builder
inited.
> 2013-04-09 12:08:10,374 INFO  [cloudstack.discovery.ApiDiscoveryServiceImpl] (main:null)
Api Discovery Service: Annotation, docstrings, api relation graph processed in 468.097935
ms
> 2013-04-09 12:08:11,563 INFO  [cloud.api.ApiServer] (Thread-7:null) ApiServer listening
on port 8096
> 2013-04-09 12:08:12,918 INFO  [hypervisor.vmware.VmwareServerDiscoverer] (main:null)
VmwareServerDiscoverer is constructed
> 2013-04-09 12:08:13,439 INFO  [web.context.ContextLoader] (main:null) Root WebApplicationContext:
initialization completed in 24641 ms
> 2013-04-09 12:08:13,502 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration
found at /etc/cloudstack/management/log4j-cloud.xml
> 2013-04-09 12:08:13,580 INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor]
(main:null) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
> 2013-04-09 12:08:23,282 INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor]
(catalina-exec-12:null) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
> 2013-04-09 12:08:23,304 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) ===START===
 10.144.6.39 -- GET  command=login&username=admin&domain=%2F&response=json
> 2013-04-09 12:08:23,316 ERROR [cloud.api.ApiServlet] (catalina-exec-12:null) unknown
exception writing api response
> java.lang.NullPointerException
>         at com.cloud.user.DomainManagerImpl.findDomainByPath(DomainManagerImpl.java:175)
>         at com.cloud.user.DomainManagerImpl.findDomainByPath(DomainManagerImpl.java:62)
>         at com.cloud.api.ApiServer.loginUser(ApiServer.java:706)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:210)
>         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: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:679)
> 2013-04-09 12:08:23,331 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) ===END===
 10.144.6.39 -- GET  command=login&username=admin&domain=%2F&response=json
> 2013-04-09 12:08:23,459 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START===
 10.144.6.39 -- GET  command=listCapabilities&response=json&sessionkey=Q%2BKOyTyJCxBNmouKCcoqM6jw0pU%3D&_=1365489613279
> 2013-04-09 12:08:23,462 ERROR [cloud.api.ApiServlet] (catalina-exec-15:null) unknown
exception writing api response
> java.lang.NullPointerException
>         at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:279)
>         at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:142)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:238)
>         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.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:679)
> 2013-04-09 12:08:23,484 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===
 10.144.6.39 -- GET  command=listCapabilities&response=json&sessionkey=Q%2BKOyTyJCxBNmouKCcoqM6jw0pU%3D&_=1365489613279
> 2013-04-09 12:08:39,779 INFO  [cloud.server.StatsCollector] (Timer-1:null) Disabling
volume stats collector
> 2013-04-09 12:08:42,169 INFO  [utils.component.ComponentContext] (Timer-1:null) Running
SystemIntegrityChecker encryptionSecretKeyChecker

--
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