[JBoss JIRA] Commented: (EMBJOPR-280) jboss-as-5 plugin: JTA Metrics not found during discovery scan
by Ian Springer (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-280?page=com.atlassian.jira.plugin.... ]
Ian Springer commented on EMBJOPR-280:
--------------------------------------
So, the as5 plugin expects there to be a single managed component of type MCBean:JTA (i.e. a "singleton" managed component), which was always the case in my testing with AS and EAP 5.x. It appears in AS6, there can potentially be more than one MCBean:JTA component deployed (the log you attached shows there were two). I'll need to figure out why there are more than two and which one we want to use to retrieve the tx metrics and then update the as5 plugin code so that it is compatible with both 5.x and 6.x.
> jboss-as-5 plugin: JTA Metrics not found during discovery scan
> ---------------------------------------------------------------
>
> Key: EMBJOPR-280
> URL: https://jira.jboss.org/browse/EMBJOPR-280
> Project: Embedded Jopr
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 1.3.2
> Environment: Embedded Jopr version: 1.4.0-20100120.135921-68
> Reporter: Shelly McGowan
> Assignee: Ian Springer
> Fix For: 1.3.3, 1.4.0
>
> Attachments: embjopr280-140CR1.txt
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> Performing manual testing of the admin-console snapshot deployed to AS 6, IllegalStateException was thrown during a runtime discovery scan when obtaining JTA metrics, specifically:
> 17:07:47,657 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Running runtime discovery scan rooted at [platform]
> 17:07:51,717 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Scanned [0] servers and found [0] total descendant Resources.
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|transactionCount'.: java.lang.IllegalStateException: Property named 'transactionCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
> 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)
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|rollbackCount'.: java.lang.IllegalStateException: Property named 'rollbackCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> 17:08:12,000 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|commitCount'.: java.lang.IllegalStateException: Property named 'commitCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> JBoss TS 4.9.0.GA was integrated into AS 6.0.0.M2 (see: JBAS-7022).
> Need to investigate further as I had several apps deployed at the time the error was thrown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Updated: (EMBJOPR-280) jboss-as-5 plugin: JTA Metrics not found during discovery scan
by Shelly McGowan (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-280?page=com.atlassian.jira.plugin.... ]
Shelly McGowan updated EMBJOPR-280:
-----------------------------------
Attachment: embjopr280-140CR1.txt
Ian, the ERROR is slightly different than the one mentioned in the description. With 1.4.0.CR1:
java.lang.IllegalStateException: Found more than one component of type
See attached.
> jboss-as-5 plugin: JTA Metrics not found during discovery scan
> ---------------------------------------------------------------
>
> Key: EMBJOPR-280
> URL: https://jira.jboss.org/browse/EMBJOPR-280
> Project: Embedded Jopr
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 1.3.2
> Environment: Embedded Jopr version: 1.4.0-20100120.135921-68
> Reporter: Shelly McGowan
> Assignee: Ian Springer
> Fix For: 1.3.3, 1.4.0
>
> Attachments: embjopr280-140CR1.txt
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> Performing manual testing of the admin-console snapshot deployed to AS 6, IllegalStateException was thrown during a runtime discovery scan when obtaining JTA metrics, specifically:
> 17:07:47,657 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Running runtime discovery scan rooted at [platform]
> 17:07:51,717 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Scanned [0] servers and found [0] total descendant Resources.
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|transactionCount'.: java.lang.IllegalStateException: Property named 'transactionCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
> 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)
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|rollbackCount'.: java.lang.IllegalStateException: Property named 'rollbackCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> 17:08:12,000 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|commitCount'.: java.lang.IllegalStateException: Property named 'commitCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> JBoss TS 4.9.0.GA was integrated into AS 6.0.0.M2 (see: JBAS-7022).
> Need to investigate further as I had several apps deployed at the time the error was thrown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Commented: (EMBJOPR-280) jboss-as-5 plugin: JTA Metrics not found during discovery scan
by Ian Springer (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-280?page=com.atlassian.jira.plugin.... ]
Ian Springer commented on EMBJOPR-280:
--------------------------------------
Shelly, would you please paste in the stack trace you are seeing with 1.4.0.CR1?
> jboss-as-5 plugin: JTA Metrics not found during discovery scan
> ---------------------------------------------------------------
>
> Key: EMBJOPR-280
> URL: https://jira.jboss.org/browse/EMBJOPR-280
> Project: Embedded Jopr
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 1.3.2
> Environment: Embedded Jopr version: 1.4.0-20100120.135921-68
> Reporter: Shelly McGowan
> Assignee: Ian Springer
> Fix For: 1.3.3, 1.4.0
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> Performing manual testing of the admin-console snapshot deployed to AS 6, IllegalStateException was thrown during a runtime discovery scan when obtaining JTA metrics, specifically:
> 17:07:47,657 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Running runtime discovery scan rooted at [platform]
> 17:07:51,717 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Scanned [0] servers and found [0] total descendant Resources.
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|transactionCount'.: java.lang.IllegalStateException: Property named 'transactionCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
> 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)
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|rollbackCount'.: java.lang.IllegalStateException: Property named 'rollbackCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> 17:08:12,000 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|commitCount'.: java.lang.IllegalStateException: Property named 'commitCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> JBoss TS 4.9.0.GA was integrated into AS 6.0.0.M2 (see: JBAS-7022).
> Need to investigate further as I had several apps deployed at the time the error was thrown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Updated: (EMBJOPR-280) jboss-as-5 plugin: JTA Metrics not found during discovery scan
by Shelly McGowan (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-280?page=com.atlassian.jira.plugin.... ]
Shelly McGowan updated EMBJOPR-280:
-----------------------------------
Fix Version/s: 1.4.0
Ian, I'm seeing this again while testing the 1.4.0.CR1 candidate for JBoss AS 6.0.0.M4
> jboss-as-5 plugin: JTA Metrics not found during discovery scan
> ---------------------------------------------------------------
>
> Key: EMBJOPR-280
> URL: https://jira.jboss.org/browse/EMBJOPR-280
> Project: Embedded Jopr
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 1.3.2
> Environment: Embedded Jopr version: 1.4.0-20100120.135921-68
> Reporter: Shelly McGowan
> Assignee: Ian Springer
> Fix For: 1.3.3, 1.4.0
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> Performing manual testing of the admin-console snapshot deployed to AS 6, IllegalStateException was thrown during a runtime discovery scan when obtaining JTA metrics, specifically:
> 17:07:47,657 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Running runtime discovery scan rooted at [platform]
> 17:07:51,717 INFO [org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor] Scanned [0] servers and found [0] total descendant Resources.
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|transactionCount'.: java.lang.IllegalStateException: Property named 'transactionCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
> 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)
> 17:08:11,996 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|rollbackCount'.: java.lang.IllegalStateException: Property named 'rollbackCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> 17:08:12,000 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] Failed to obtain metric 'MCBean|JTA|*|commitCount'.: java.lang.IllegalStateException: Property named 'commitCount' not found for ManagedComponent [org.jboss.profileservice.management.client.ManagedComponentDelegate@1de64f6].
> at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:80)
> at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:256)
> JBoss TS 4.9.0.GA was integrated into AS 6.0.0.M2 (see: JBAS-7022).
> Need to investigate further as I had several apps deployed at the time the error was thrown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Commented: (EMBJOPR-274) PluginTransformException < FileNotFoundException: /localhost/admin-console/plugins/jopr-hibernate-plugin-1.4.0-SNAPSHOT.jar
by Ian Springer (JIRA)
[ https://jira.jboss.org/browse/EMBJOPR-274?page=com.atlassian.jira.plugin.... ]
Ian Springer commented on EMBJOPR-274:
--------------------------------------
This was fixed in RHQ 3.0.0.B06, to which EmbJopr was upgraded in r940.
> PluginTransformException < FileNotFoundException: /localhost/admin-console/plugins/jopr-hibernate-plugin-1.4.0-SNAPSHOT.jar
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: EMBJOPR-274
> URL: https://jira.jboss.org/browse/EMBJOPR-274
> Project: Embedded Jopr
> Issue Type: Bug
> Affects Versions: 1.3.3
> Environment: EAP 5.0 GA
> RHQ and Jopr 1.4.0-SNAPSHOT commit 6a59e0f19febd2d316872a2d1af27e14d0d65247
> Reporter: Ondrej Žižka
> Assignee: Ian Springer
> Fix For: 1.4.0
>
> Attachments: plugins-load-full.log, plugins-load.log
>
>
> All plugins report failure when being loaded - see bellow and the attached log. However, the admin console seems to work correctly.
> 00:01:34,468 ERROR [PluginManager] Plugin [Hibernate] at [jndi:/localhost/admin-console/plugins/jopr-hibernate-plugin-1.4.0-SNAPSHOT.jar] could not be loaded and will therefore not be deployed.
> org.rhq.core.clientapi.descriptor.PluginTransformException: Failed to create plugin.
> at org.rhq.core.clientapi.descriptor.PluginTransformer.toPlugin(PluginTransformer.java:77)
> at org.rhq.core.pc.plugin.PluginManager$1.execute(PluginManager.java:197)
> at org.rhq.core.pc.plugin.PluginManager.loadPlugin(PluginManager.java:361)
> at org.rhq.core.pc.plugin.PluginManager.initialize(PluginManager.java:152)
> at org.rhq.core.pc.PluginContainer.startContainerService(PluginContainer.java:365)
> at org.rhq.core.pc.PluginContainer.initialize(PluginContainer.java:241)
> at org.jboss.on.embedded.ui.BootstrapAction.initPluginContainer(BootstrapAction.java:155)
> [...]
> Caused by: java.io.FileNotFoundException: /localhost/admin-console/plugins/jopr-hibernate-plugin-1.4.0-SNAPSHOT.jar (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at org.rhq.core.util.MessageDigestGenerator.getDigest(MessageDigestGenerator.java:207)
> at org.rhq.core.util.MessageDigestGenerator.getDigestString(MessageDigestGenerator.java:226)
> at org.rhq.core.clientapi.descriptor.PluginTransformer.getMd5(PluginTransformer.java:98)
> at org.rhq.core.clientapi.descriptor.PluginTransformer.toPlugin(PluginTransformer.java:71)
> ... 96 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months