Bug 1038270

Summary: NPE when accessing the storage node view immediately after the install
Product: [Other] RHQ Project Reporter: Jirka Kremser <jkremser>
Component: Core Server, Storage NodeAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.9CC: bkramer, hrupp, loleary
Target Milestone: ---   
Target Release: RHQ 4.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1078488 (view as bug list) Environment:
Last Closed: 2014-04-23 12:32:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1078488    

Description Jirka Kremser 2013-12-04 19:01:37 UTC
Description of problem:
UI throws an exception because the resource id has not been assigned to the storage node yet.


Version-Release number of selected component (if applicable):
4.10.0-SNAPSHOT


How reproducible:
always few seconds after the clean installation


Steps to Reproduce:
1. install the RHQ
2. go to #Administration/Topology/StorageNodes

Actual results:
exception in server.log:

Caused by: java.lang.NullPointerException
	at org.rhq.enterprise.server.cloud.StorageNodeManagerBean.findUnackedAlertCounts(StorageNodeManagerBean.java:851) [rhq-server.jar:4.10.0-SNAPSHOT]
	at org.rhq.enterprise.server.cloud.StorageNodeManagerBean.getStorageNodeComposites(StorageNodeManagerBean.java:639) [rhq-server.jar:4.10.0-SNAPSHOT]


Expected results:
no exception

Comment 1 Jirka Kremser 2013-12-04 19:21:35 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=df44d50f6
time:    2013-12-04 20:10:37 +0100
commit:  df44d50f6fbbfd570335a7f40a8b98d9d8152a9a
author:  Jirka Kremser - jkremser
message: [BZ 1038270] - NPE when accessing the storage node view immediately
         after the install - NPE check added

Comment 2 Heiko W. Rupp 2014-04-23 12:32:30 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.