[
https://issues.apache.org/jira/browse/ARIES-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
huynh ngoc tho updated ARIES-1056:
----------------------------------
Comment: was deleted
(was: Are there anyone who resolved this issue ?)
> Can't access MBeans by using the specified object name constants
> ----------------------------------------------------------------
>
> Key: ARIES-1056
> URL: https://issues.apache.org/jira/browse/ARIES-1056
> Project: Aries
> Issue Type: Bug
> Components: JMX
> Reporter: Daniel Müller
>
> I've updated org.apache.aries.jmx.api from 1.0.0 to 1.1.0 and figured out,
> that by calling
> final BundleStateMBean bundleStateMBean = JMX.newMBeanProxy(msc, new
> ObjectName(BundleStateMBean.OBJECTNAME), BundleStateMBean.class);
> final TabularData tabularData = bundleStateMBean.listBundles();
> an InstanceNotFoundException is thrown due to the fact that
> osgi.core:type=bundleState,version=1.7 is not available. The code snippet
> above has already worked with version 1.0.0!
> I've found out that, if I use
> final BundleStateMBean bundleStateMBean = JMX.newMBeanProxy(msc, new
> ObjectName("osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=62b24e2d-d077-4d6e-b44a-ab98fe352e88"),
> BundleStateMBean.class);
> final TabularData tabularData = bundleStateMBean.listBundles();
> everything works fine. But only as long as the UUID of the MBean doesn't
> change.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)