[ https://issues.apache.org/jira/browse/CLOUDSTACK-3047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13741743#comment-13741743 ]
ASF subversion and git services commented on CLOUDSTACK-3047: ------------------------------------------------------------- Commit 3eacdb1547f42ee69378503b5b27cbbf4f1baf9b in branch refs/heads/4.2 from [~prachidamle] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=3eacdb1 ] CLOUDSTACK-3047 java.lang.NullPointerException encountered when executing capacityChecker thread. Changes: - Added null check around clusterId, since its possible to have null clusterId for storagepool and host records Conflicts: server/src/com/cloud/capacity/CapacityManagerImpl.java > java.lang.NullPointerException encountered when executing capacityChecker > thread. > ---------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3047 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3047 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Reporter: Prachi Damle > Assignee: Prachi Damle > Fix For: 4.2.0 > > > Following exception in the logs thrown by capacityChecker thread: > 2013-06-13 14:34:17,285 ERROR [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) Caught exception in recalculating capacity > java.lang.NullPointerException > at > com.cloud.capacity.CapacityManagerImpl.updateCapacityForHost(CapacityManagerImpl.java:546) > at > com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:30) > at > com.cloud.alert.AlertManagerImpl.recalculateCapacity(AlertManagerImpl.java:286) > at > com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:30) > at > com.cloud.alert.AlertManagerImpl.checkForAlerts(AlertManagerImpl.java:443) > at > com.cloud.alert.AlertManagerImpl$CapacityChecker.run(AlertManagerImpl.java:432) > at java.util.TimerThread.mainLoop(Timer.java:534) > at java.util.TimerThread.run(Timer.java:484) -- 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