[ https://issues.apache.org/jira/browse/FELIX-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996353#comment-12996353 ]
Felix Meschberger commented on FELIX-2847: ------------------------------------------ Yes, ServiceReference.getBundle() may be null if the service has been unregistered. This may probably also be the cause for the error to report: The service has been unregistered and thus update fails... Will fix the toString() method to check for this situation and adapt logging accordingly. > NPE in ConfigurationManager.java:1003 (static String toString( > ServiceReference ref )) > -------------------------------------------------------------------------------------- > > Key: FELIX-2847 > URL: https://issues.apache.org/jira/browse/FELIX-2847 > Project: Felix > Issue Type: Bug > Components: Configuration Admin > Affects Versions: configadmin-1.2.8 > Environment: window ; cygwin > Reporter: Stephane Chomat > Assignee: Felix Meschberger > Original Estimate: 4h > Remaining Estimate: 4h > > When the config admin thread try to log an error (in handleCallBackError), a > NPE is raised. May ref.getBundle() is null ? > java.lang.NullPointerException > at > org.apache.felix.cm.impl.ConfigurationManager.toString(ConfigurationManager.java:1003)[3:org.apache.felix.configadmin:1.2.8] > at > org.apache.felix.cm.impl.ConfigurationManager.handleCallBackError(ConfigurationManager.java:1028)[3:org.apache.felix.configadmin:1.2.8] > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1164)[3:org.apache.felix.configadmin:1.2.8] > at > org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)[3:org.apache.felix.configadmin:1.2.8] > at java.lang.Thread.run(Thread.java:662)[:1.6.0_23] -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira