Bug 534251 (RHQ-1065)

Summary: NPE in EmbeddedJMXServerDiscoveryComponent
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: PluginsAssignee: John Mazzitelli <mazz>
Status: CLOSED NEXTRELEASE QA Contact: Jeff Weiss <jweiss>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.1CC: dajohnso
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1065
Whiteboard:
Fixed In Version: 1.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Mazzitelli 2008-11-06 05:58:00 UTC
2008-11-05 23:54:06,641 WARN  [InventoryManager.discovery-1] (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Failed to execute runtime discovery for Resources of type ResourceType[id=0, category=Server, name=JBoss AS JVM, plugin=JBossAS]
java.lang.NullPointerException
        at org.rhq.plugins.jmx.EmbeddedJMXServerDiscoveryComponent.discoverResources(EmbeddedJMXServerDiscoveryComponent.java:60)
        at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.executeComponentDiscovery(RuntimeDiscoveryExecutor.java:246)
        at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:218)
        at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.runtimeDiscover(RuntimeDiscoveryExecutor.java:136)
        at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:97)
        at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:54)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)


Comment 1 Heiko W. Rupp 2008-11-06 10:15:31 UTC
Are you running with native turned off?

Comment 2 John Mazzitelli 2008-12-13 06:06:32 UTC
yes, I probably did not have native enabled. fixed this NPE by checking to see if the native process was null or not. if null, skip the processing.

Comment 3 Jeff Weiss 2009-01-09 19:29:09 UTC
Ran discovery with native turned off, didn't see any errors.  rev2561

Comment 4 Red Hat Bugzilla 2009-11-10 20:23:09 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1065