Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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.