Bug 547716 - [raw-config] exception thrown when clicking on platform name
Summary: [raw-config] exception thrown when clicking on platform name
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: RHQ_RawConfig
TreeView+ depends on / blocked
 
Reported: 2009-12-15 14:29 UTC by Preethi Thomas
Modified: 2010-08-12 16:50 UTC (History)
1 user (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-12 16:50:59 UTC
Embargoed:


Attachments (Terms of Use)
traceback (11.04 KB, text/plain)
2009-12-15 14:29 UTC, Preethi Thomas
no flags Details

Description Preethi Thomas 2009-12-15 14:29:53 UTC
Created attachment 378509 [details]
traceback

Description of problem:
traceback thrown when you click on Resources->Platform-> <platform-name>

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


How reproducible:


Steps to Reproduce:
1.Login to the RHQ server 
2. Import a resource
3. Navigate to Resources->Platform
4. Click on the platform name
  
Actual results:

trace back
javax.el.ELException: /rhq/resource/summary/table/recentConfigUpdates.xhtml @16,69 value="#{ResourceOverviewUIBean.recentConfigChanges}": Error reading 'recentConfigChanges' on type org.rhq.enterprise.gui.inventory.resource.ResourceOverviewUIBean

Expected results:
no exception

Additional info:
Trace back attached.

Comment 1 John Sanda 2009-12-15 15:30:09 UTC
This exception happened as a result of my fix for bug 544316. I added logic to account for raw config which caused a NPE when the resource has no configuration definition associated with it. I have altogether removed that logic as it really does not make sense in light of raw config. The logic was an optimization that checked for existence of config property definitions. If there were no property definitions, no query is executed. With raw config though, a resource can have a config definition that does not have any property definitions.

The commit hash for this change is,

0050ae7cdf3e8e226f728b1d64f9effde315fa76

Comment 2 Preethi Thomas 2009-12-15 15:57:20 UTC
This seems to be have been fixed in the latest raw-config branch build. 
moving to on_qa to test after integration
http://10.16.120.159:7080

Comment 3 Preethi Thomas 2010-01-07 15:33:59 UTC
verified in master. No traceback when clicking on the platform link.
http://10.16.120.159:7080/rhq/resource/summary/overview.xhtml?id=10001

Comment 4 Corey Welton 2010-08-12 16:50:59 UTC
Mass-closure of verified bugs against JON.


Note You need to log in before you can comment on or make changes to this bug.