felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-740) ConfigurationManager throws NPE when bundle that registered service is uninstalled
Date Wed, 14 Jan 2009 20:01:05 GMT

     [ 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.


Mime
View raw message