Return-Path: Delivered-To: apmail-incubator-aries-dev-archive@minotaur.apache.org Received: (qmail 12484 invoked from network); 18 Mar 2010 21:44:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 21:44:48 -0000 Received: (qmail 61087 invoked by uid 500); 18 Mar 2010 21:44:48 -0000 Delivered-To: apmail-incubator-aries-dev-archive@incubator.apache.org Received: (qmail 61039 invoked by uid 500); 18 Mar 2010 21:44:48 -0000 Mailing-List: contact aries-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: aries-dev@incubator.apache.org Delivered-To: mailing list aries-dev@incubator.apache.org Received: (qmail 61029 invoked by uid 99); 18 Mar 2010 21:44:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 21:44:48 +0000 X-ASF-Spam-Status: No, hits=-1061.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 21:44:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2372A234C1F2 for ; Thu, 18 Mar 2010 21:44:27 +0000 (UTC) Message-ID: <1929508721.352061268948667130.JavaMail.jira@brutus.apache.org> Date: Thu, 18 Mar 2010 21:44:27 +0000 (UTC) From: "Adam Wojtuniak (JIRA)" To: aries-dev@incubator.apache.org Subject: [jira] Commented: (ARIES-259) MBeans not getting unregistered reliably In-Reply-To: <1778198536.350911268945187131.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847125#action_12847125 ] Adam Wojtuniak commented on ARIES-259: -------------------------------------- BundleState.shutDownDispatcher is missing a check for bundleContext validity. BundleContext could be no valid cause of asynchronous unregistration of MBeans. > MBeans not getting unregistered reliably > ---------------------------------------- > > Key: ARIES-259 > URL: https://issues.apache.org/jira/browse/ARIES-259 > Project: Aries > Issue Type: Bug > Components: JMX > Reporter: Thomas Diesler > > 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) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.