Bug 552538

Summary: Detection of Embedded TC fails with JBoss 4.0.5 due to Exception
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: PluginsAssignee: Ian Springer <ian.springer>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 1.3CC: ccrouch, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 1.3.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-07 16:46:53 UTC Type: ---
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:    
Bug Blocks: 557793    

Description Heiko W. Rupp 2010-01-05 13:08:05 UTC
Description of problem:

Embedded TC in jbossAS 4.0.5 is detected, but shows no metrics or schedules

From agent.log

2010-01-05 13:54:29,915 WARN  [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Failure during discovery 
for [Connector] Resources - failed after 5 ms.
java.lang.Exception: Discovery component invocation failed.
        at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.jav
a:270)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1937)
        at org.rhq.plugins.jbossas.JBossASTomcatConnectorDiscoveryComponent.discoverResources(JBossASTomcatConnectorDiscoveryCom
ponent.java:101)
        at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
a:266)
        ... 5 more

This may come from the changes from JOPR-208

Comment 1 Heiko W. Rupp 2010-01-07 09:31:27 UTC
This is very probably fixed by JOPR-399 - as the symptoms here are the same as described in JOPR-399

Assigning to Ips to check

Comment 2 Ian Springer 2010-01-07 16:46:53 UTC
Yep, this is a dup of https://jira.jboss.org/jira/browse/JOPR-399 - see that issue for all the details. The fix is checked into the linux-config branch and will get merged into master next time linux-config is merged.