You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/01/14 20:54:59 UTC
[jira] Work started: (FELIX-740) ConfigurationManager throws NPE
when bundle that registered service is uninstalled
[ https://issues.apache.org/jira/browse/FELIX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on FELIX-740 started by Felix Meschberger.
> 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
>
> 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.