Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 64751 invoked from network); 14 Jan 2009 20:01:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2009 20:01:26 -0000 Received: (qmail 74136 invoked by uid 500); 14 Jan 2009 20:01:26 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 74093 invoked by uid 500); 14 Jan 2009 20:01:25 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 74082 invoked by uid 99); 14 Jan 2009 20:01:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 12:01:25 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 14 Jan 2009 20:01:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2AA68234C4AC for ; Wed, 14 Jan 2009 12:01:05 -0800 (PST) Message-ID: <1082058421.1231963265173.JavaMail.jira@brutus> Date: Wed, 14 Jan 2009 12:01:05 -0800 (PST) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-740) ConfigurationManager throws NPE when bundle that registered service is uninstalled In-Reply-To: <1832197161.1222450304281.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger resolved FELIX-740. ------------------------------------- Resolution: Fixed Fix Version/s: configadmin-1.0.6 The ManagedServiceUpdate.run method has the same issue. I fixed both in Rev. 734500 by checking the bundle and aborting the processing if it became null. Please close this issue, if it fixes your problem. Thanks. > ConfigurationManager throws NPE when bundle that registered service is uninstalled > ---------------------------------------------------------------------------------- > > Key: FELIX-740 > URL: https://issues.apache.org/jira/browse/FELIX-740 > Project: Felix > Issue Type: Bug > Components: Configuration Admin > Affects Versions: configadmin-1.0.4 > Reporter: Peter Doornbosch > Assignee: Felix Meschberger > Priority: Minor > Fix For: configadmin-1.0.6 > > > Sometimes, a NullPointerException is thrown in the ConfigAdmin's update thread, that is originating from the following piece of code (ConfigurationManager): > private class ManagedServiceFactoryUpdate implements Runnable > (...) > public void run() > { > Factory factory; > try > { > factory = getFactory( factoryPid ); > } > catch ( IOException ioe ) > { > log( LogService.LOG_ERROR, "Cannot get factory mapping for factory PID " + factoryPid, ioe ); > return; > } > String bundleLocation = sr.getBundle().getLocation(); > The NPE occurs in the last line. From the context it is clear that "sr" is not null, hence, sr.getBundle() returns null. > Probably, this is caused by a bundle that is stopped concurrently. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.