[ https://issues.apache.org/jira/browse/CLOUDSTACK-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13603932#comment-13603932 ]
Min Chen commented on CLOUDSTACK-1690: -------------------------------------- By looking at the detailed log, I can see that this NPE is caused by missing "system" account in DB, which can be seen from earlier exception in the log: 2013-03-15 07:38:05,080 ERROR [utils.component.ComponentContext] (Timer-1:null) Unhandled exception javax.naming.ConfigurationException: Unable to find the system account using 1 at com.cloud.user.AccountManagerImpl.configure(AccountManagerImpl.java:243) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:43) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at sun.proxy.$Proxy111.configure(Unknown Source) at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:97) at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50) at java.util.TimerThread.mainLoop(Timer.java:534) at java.util.TimerThread.run(Timer.java:484) Where is DB located for this run? > NPE from API server when starting mgmt server > --------------------------------------------- > > Key: CLOUDSTACK-1690 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1690 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Affects Versions: 4.1.0 > Reporter: Prasanna Santhanam > Assignee: Min Chen > Priority: Blocker > Fix For: 4.1.0 > > Attachments: mslog.tar.bz2 > > > Latest pacakges from jenkins on the 4.1 branch > http://jenkins.cloudstack.org/job/package-rhel63-4.1/12/ > When the management server starts up the following NPE is noticed. > 2013-03-15 04:38:29,657 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.OfferingDaoImpl > 2013-03-15 04:38:29,658 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl > 2013-03-15 04:38:29,658 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.SMetaDaoImpl > 2013-03-15 04:38:29,658 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.UserCredentialsDaoImpl > 2013-03-15 04:38:29,658 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.MultipartMetaDaoImpl > 2013-03-15 04:38:29,658 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.CloudStackConfigurationDaoImpl > 2013-03-15 04:38:29,659 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.BucketPolicyDaoImpl > 2013-03-15 04:38:29,659 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.SObjectItemDaoImpl > 2013-03-15 04:38:29,659 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.MHostMountDaoImpl > 2013-03-15 04:38:29,659 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.MHostDaoImpl > 2013-03-15 04:38:29,659 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.MultiPartUploadsDaoImpl > 2013-03-15 04:38:29,659 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.SBucketDaoImpl > 2013-03-15 04:38:29,659 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.SAclDaoImpl > 2013-03-15 04:38:29,660 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.MultiPartPartsDaoImpl > 2013-03-15 04:38:29,660 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.CloudStackSvcOfferingDaoImpl > 2013-03-15 04:38:29,660 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.SHostDaoImpl > 2013-03-15 04:38:29,660 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.CloudStackUserDaoImpl > 2013-03-15 04:38:29,660 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.persist.dao.SObjectDaoImpl > 2013-03-15 04:38:29,660 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.service.core.ec2.EC2Engine > 2013-03-15 04:38:29,661 INFO [utils.component.ComponentContext] (main:null) > Starting com.cloud.bridge.service.controller.s3.ServiceProvider > 2013-03-15 04:40:00,593 ERROR [cloud.api.ApiServer] (ApiServer-2:null) > Unhandled exception, > java.lang.NullPointerException > at com.cloud.api.ApiServer.handle(ApiServer.java:281) > at > org.apache.http.protocol.HttpService.doService(HttpService.java:375) > at > org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290) > at com.cloud.api.ApiServer$WorkerTask.run(ApiServer.java:956) > 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) > API server does not come up after this -- 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