Bug 552538 - Detection of Embedded TC fails with JBoss 4.0.5 due to Exception
Summary: Detection of Embedded TC fails with JBoss 4.0.5 due to Exception
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 1.3
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: JON231
TreeView+ depends on / blocked
 
Reported: 2010-01-05 13:08 UTC by Heiko W. Rupp
Modified: 2013-08-06 00:36 UTC (History)
2 users (show)

Fixed In Version: 1.3.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-07 16:46:53 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.