Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1115192

Summary: Agent Exception When App Attempts To Connect Via API
Product: [JBoss] JBoss Operations Network Reporter: Matt Mahoney <mmahoney>
Component: AgentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.2CC: loleary, myarboro
Target Milestone: DR04   
Target Release: JON 3.2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 00:17:01 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:
Attachments:
Description Flags
Agent.log none

Description Matt Mahoney 2014-07-01 20:18:01 UTC
Created attachment 913923 [details]
Agent.log

Description of problem:
When agent is started as 'root' and java app (connecting via API) is running as 'root', an agent exception is generated - thus preventing the agent from discovering the java app.


2014-06-30 08:59:16,650 ERROR [ResourceDiscoveryComponent.invoker.daemon-1] (org.modeshape.rhq.ModeShapePlugin)- No ModeShape Engine discovered
2014-06-30 08:59:25,128 WARN  [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Failure during discovery for [Query Cache] Resources - failed after 115 ms.
java.lang.Exception: Discovery component invocation failed.
        at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:309)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)


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

How reproducible:
Always

Steps to Reproduce:
1. Start agent as root
2. Start Java app (that connects via API) as root
3.

Actual results:
Java application does not inventory

Expected results:
Java application should inventory

Additional info:

Comment 2 Matt Mahoney 2014-07-01 20:23:02 UTC
Reproduction Step Clarification:

Steps to Reproduce:
1. Start agent as root
2. Start a java app with -Dorg.rhq.resourceKey=foo

Comment 5 Matt Mahoney 2014-07-08 17:39:08 UTC
Verified against JON 3.2.2 DR4

Comment 7 Larry O'Leary 2014-07-29 00:17:01 UTC
This has been verified and released in Red Hat JBoss Operations Network 3.2 Update 02 (3.2.2) available from the Red Hat Customer Portal[1].



[1]: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=31783