Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1056

Can't access MBeans by using the specified object name constants

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            d.mueller Daniel Müller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: