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