Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-3225

Multiple NPEs when cloudstack-management service is restarted with incomplete tasks/notifications.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 4.2.0
    • 4.4.3
    • Management Server
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None
    • master-6-17-stable build

    Description

      Steps:
      1. Have a CS setup with any zone.
      2. Create any task like rebooting the instance/ router VM/VPC restart etc..
      3. While the task is incomplete try to restart the management service.

      Observation:

      Observed multiple NPEs in the MS log.

      2013-06-27 17:26:26,267 ERROR [cloud.api.ApiServlet] (catalina-exec-4:null) unknown exception writing api response
      java.lang.NullPointerException
      at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:309)
      at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:150)
      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-06-27 17:26:26,283 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) ===END=== 10.252.192.69 – GET command=queryAsyncJobResult&jobId=459114c9-5e2a-4cf0-8267-df2a179499c2&response=json&sessionkey=nJAZqwBB2k8KRNoM%2FpKQPK4DZkg%3D&_=1372314733853
      2013-06-27 17:26:29,277 DEBUG [cloud.api.ApiServlet] (catalina-exec-5:null) ===START=== 10.252.192.69 – GET command=queryAsyncJobResult&jobId=459114c9-5e2a-4cf0-8267-df2a179499c2&response=json&sessionkey=nJAZqwBB2k8KRNoM%2FpKQPK4DZkg%3D&_=1372314736852
      2013-06-27 17:26:29,278 ERROR [cloud.api.ApiServlet] (catalina-exec-5:null) unknown exception writing api response
      java.lang.NullPointerException
      at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:309)
      at com.cloud.user.AccountManagerImpl.getSystemUser(AccountManagerImpl.java:150)
      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)

      Attaching the MS log.

      Attachments

        1. management-server.zip
          1022 kB
          manasaveloori

        Activity

          People

            prachidamle Prachi Damle
            t_manasave manasaveloori
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: