[ 
https://issues.apache.org/jira/browse/QPID-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sorin Suciu updated QPID-2927:
------------------------------

    Attachment: qpid-2927.patch

Hi Robbie, 
Could you review this patch please?

Thanks, 

Sorin


> JMX Shutdown plugin throws InstanceNotFoundException during broker shutdown
> ---------------------------------------------------------------------------
>
>                 Key: QPID-2927
>                 URL: https://issues.apache.org/jira/browse/QPID-2927
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.7
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>             Fix For: 0.7
>
>         Attachments: qpid-2927.patch
>
>
> If the broker is stopped cleanly it emits an InstanceNotFoundException on the 
> terminal when stopping the JMX Shutdown plugin bundle. This is because the 
> when the ApplicationRegistry shutdown hook is run, the 
> JMXManagedObjectRegistry unregisters all MBeans in the 'org.apache.qpid' 
> domain whilst closing, presumably before Felix is shut down and thus causing 
> the Shutdown plugin to fail when trying to unregister the shutdown MBean 
> again explicitly.
> This can be handled by simply catching the INFE in the Activator, such that 
> the MBean is unregistered if the bundle were to be stopped before the broker, 
> but no exception is thrown in the reverse case.
> ERROR: Error stopping bundle. (javax.management.InstanceNotFoundException: 
> org.apache.qpid:type=ShutdownMBean)
> javax.management.InstanceNotFoundException: org.apache.qpid:type=ShutdownMBean
>       at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
>       at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:415)
>       at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)
>       at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)
>       at org.apache.qpid.shutdown.Activator.stop(Activator.java:59)
>       at 
> org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:683)
>       at org.apache.felix.framework.Felix.stopBundle(Felix.java:2128)
>       at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1152)
>       at 
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
>       at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to