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

MBeans not getting unregistered reliably

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1
    • Component/s: JMX
    • Labels:
      None

      Description

      Closing the MBeanServiceTracker asyncronously triggers JMXAgent.unregisterBeans(MBeanServer server)

      If there is a unexpected exception while unregistering an MBeanHandler the ones coming after it will not get unregitered.
      In particular I am seeing an unguarded postDeregister hook.

      Caused by: java.lang.IllegalStateException: Invalid BundleContext.
      at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:393)
      at org.apache.felix.framework.BundleContextImpl.removeBundleListener(BundleContextImpl.java:170)
      at org.apache.aries.jmx.framework.BundleState.shutDownDispatcher(BundleState.java:353)
      at org.apache.aries.jmx.framework.BundleState.postDeregister(BundleState.java:293)
      at org.apache.aries.jmx.framework.RegistrableStandardEmitterMBean.postDeregister(RegistrableStandardEmitterMBean.java:69)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postDeregisterInvoke(DefaultMBeanServerInterceptor.java:1065)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                adamwojtuniak Adam Wojtuniak
                Reporter:
                tdiesler Thomas Diesler
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: