[ https://issues.apache.org/jira/browse/CLOUDSTACK-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13711627#comment-13711627 ]
Sudha Ponnaganti commented on CLOUDSTACK-3598: ---------------------------------------------- BVT failure - so marking as blocker > [Automation] NullPointerException observed while connecting agent > ------------------------------------------------------------------ > > Key: CLOUDSTACK-3598 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3598 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: VMware > Affects Versions: 4.2.0 > Environment: Vmware > build 4.2 > Reporter: Rayees Namathponnan > Assignee: Venkata Siva Vijayendra Bhamidipati > Priority: Blocker > Fix For: 4.2.0 > > Attachments: CLOUDSTACK-3598.rar > > > Observed below NPE in management server log > INFO [storage.secondary.SecondaryStorageListener] (AgentConnectTaskPool-34:) > Received a host startup notification > com.cloud.agent.api.StartupSecondaryStorageCommand > INFO [network.security.SecurityGroupListener] (AgentConnectTaskPool-34:) > Received a host startup notification > INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-34:) Template > Sync found centos53-x64 already in the image store > INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-34:) Template > Sync found routing-8 already in the image store > INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-34:) Template > Sync found 204-17-be1f9cd1-6d30-378c-868d-301cc0429a25 already in the image > store > ERROR [agent.manager.AgentManagerImpl] (AgentConnectTaskPool-34:) Monitor > DownloadListener says there is an error in the connect process for 11 due to > null > java.lang.NullPointerException > at > com.cloud.configuration.dao.ResourceCountDaoImpl.setResourceCount(ResourceCountDaoImpl.java:101) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.resourcelimit.ResourceLimitManagerImpl.recalculateAccountResourceCount(ResourceLimitManagerImpl.java:847) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.resourcelimit.ResourceLimitManagerImpl.recalculateResourceCount(ResourceLimitManagerImpl.java:702) > at > org.apache.cloudstack.storage.image.TemplateServiceImpl.handleTemplateSync(TemplateServiceImpl.java:342) > at > com.cloud.storage.download.DownloadListener.processConnect(DownloadListener.java:307) > at > com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:586) > at > com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1086) > at > com.cloud.agent.manager.AgentManagerImpl.access$100(AgentManagerImpl.java:144) > at > com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.run(AgentManagerImpl.java:1161) > 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) > INFO [agent.manager.AgentManagerImpl] (AgentConnectTaskPool-34:) Host 11 is > disconnecting with event AgentDisconnected -- 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