[
https://jira.jboss.org/jira/browse/JBBOOT-93?page=com.atlassian.jira.plug...
]
Andrew Lee Rubinger resolved JBBOOT-93.
---------------------------------------
Resolution: Done
Define @ManagementProperty ServerConfig.getSpecificationVersion
---------------------------------------------------------------
Key: JBBOOT-93
URL:
https://jira.jboss.org/jira/browse/JBBOOT-93
Project: JBoss Bootstrap
Issue Type: Feature Request
Components: impl-as
Affects Versions: 2.0.0-alpha-1
Reporter: Andrew Lee Rubinger
Assignee: Andrew Lee Rubinger
Fix For: impl-as-2.0.0-alpha-2
This is required by Jopr.
09:32:48,964 WARN [InventoryManager] Failure during discovery for [JBossAS Server]
Resources - failed after 6282 ms.
java.lang.Exception: Discovery component invocation failed.
at
org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:248)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalStateException: Property named 'specificationVersion'
not found for ManagedComponent
[org.jboss.managed.plugins.ManagedComponentImpl@24b80637{name=jboss.system:type=ServerConfig,
type=ComponentType{type=MCBean, subtype=ServerConfig},
owner=ManagedDeployment@1381870081}].
at
org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:73)
at
org.rhq.plugins.jbossas5.ApplicationServerDiscoveryComponent.discoverInProcessJBossAS(ApplicationServerDiscoveryComponent.java:281)
at
org.rhq.plugins.jbossas5.ApplicationServerDiscoveryComponent.discoverResources(ApplicationServerDiscoveryComponent.java:102)
at sun.reflect.GeneratedMethodAccessor311.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:244)
... 5 more
Legacy has:
ctor:
serverSpecificationVersion = thisPackage.getSpecificationVersion();
@ManagementProperty(description="the server Specification-Version",
use={ViewUse.STATISTIC})
public String getSpecificationVersion()
{
return serverSpecificationVersion;
}
Remove the STATISTIC use and mark read-only.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira