Bug 811507

Summary: NPE on plugin update
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core ServerAssignee: Stefan Negrea <snegrea>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.3CC: hrupp, snegrea
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 19:21:09 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: 811525    
Bug Blocks:    
Attachments:
Description Flags
Stack trace from console none

Description Heiko W. Rupp 2012-04-11 09:51:17 UTC
Trying to update the as7 plugin in the server

Get a NPE and many of the new /changed types are not persisted

Caused by: java.lang.NullPointerException
	at org.rhq.enterprise.server.resource.metadata.PluginConfigurationMetadataManagerBean.updatePluginConfigurationDefinition(PluginConfigurationMetadataManagerBean.java:55)

Full stack trace is attached.

Comment 1 Heiko W. Rupp 2012-04-11 09:52:14 UTC
Created attachment 576732 [details]
Stack trace from console

Comment 2 Stefan Negrea 2012-04-11 15:12:08 UTC
This error has been fixed by bug 811525. 

The error reported here is not identical to the one fixed in bug 811525 but it has the same root cause. The cause is improper hierarchical import of resources. With that being fixed, resources are imported in the correct order and thus the errors from the attached logs are fixed.

Comment 3 Heiko W. Rupp 2013-09-01 19:21:09 UTC
Bulk closing of BZs that have no target version set, but which are ON_QA for more than a year and thus are in production for a long time.