Bug 1138784

Summary: [eap6] NPE when loading configuration for datasources subsystem of managed server
Product: [JBoss] JBoss Operations Network Reporter: Libor Zoubek <lzoubek>
Component: Plugin -- JBoss EAP 6Assignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Sunil Kondkar <skondkar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: skondkar, theute
Target Milestone: ER04   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 14:03:12 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:

Description Libor Zoubek 2014-09-05 15:40:46 UTC
Description of problem:

I am getting NPE in agent.log when I attempt to load configuration for datasources on Managed EAP.

Version-Release number of selected component (if applicable):
JON 3.3.0.ER1 EAP 6.0.0.GA

How reproducible: always


Steps to Reproduce:
1. have domain mode running and imported
2. visit configuration tab for some running managed server

Actual results: NPE in log

2014-09-05 17:13:50,777 WARN  [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- An error occurred while checking for an upda
ted Resource configuration for Resource[id=10174, uuid=ef739553-cc33-4fc0-9d4a-997849c9eb1e, type={JBossAS7}Datasources (Managed), key=host=arch,server=server-one,sub
system=datasources, name=datasources, parent=EAP server-one].
java.lang.NullPointerException
        at org.rhq.modules.plugins.jbossas7.ConfigurationLoadDelegate.loadHandleProperties(ConfigurationLoadDelegate.java:222)
        at org.rhq.modules.plugins.jbossas7.ConfigurationLoadDelegate.loadHandleGroup(ConfigurationLoadDelegate.java:174)
        at org.rhq.modules.plugins.jbossas7.ConfigurationLoadDelegate.loadResourceConfiguration(ConfigurationLoadDelegate.java:99)
        at org.rhq.modules.plugins.jbossas7.BaseComponent.loadResourceConfiguration(BaseComponent.java:364)

Expected results:


Additional info: This seems to happen when there are no JDBC drivers deployed on server (or at least listed by server)

Comment 2 Libor Zoubek 2014-09-18 12:36:27 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/904407605
time:    2014-09-18 14:32:18 +0200
commit:  904407605b1d62236907c95fd812c95e8f00c15f
author:  Libor Zoubek - lzoubek
message: Bug 1138784 - [eap6] NPE when loading configuration for datasources 
         subsystem of managed server

branch:  release/jon3.3.x
link:    https://github.com/rhq-project/rhq/commit/4cebcc92b
time:    2014-09-18 14:35:49 +0200
commit:  4cebcc92b4bcd06b1adcacce6ab58d2d764938e3
author:  Libor Zoubek - lzoubek
message: Bug 1138784 - [eap6] NPE when loading configuration for datasources 
         subsystem of managed server
         (cherry picked from commit
         904407605b1d62236907c95fd812c95e8f00c15f) Signed-off-by: Libor
         Zoubek <lzoubek>

Comment 3 Simeon Pinder 2014-10-01 21:33:30 UTC
Moving to ON_QA as available for test with build:
https://brewweb.devel.redhat.com/buildinfo?buildID=388959

Comment 4 Sunil Kondkar 2014-10-10 14:29:06 UTC
Verified on ON 3.3 ER04 EAP 6.0.0.GA