You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stephane Chomat (JIRA)" <ji...@apache.org> on 2011/02/17 16:15:24 UTC
[jira] Created: (FELIX-2847) NPE in ConfigurationManager.java:1003
(static String toString( ServiceReference ref ))
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
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
[jira] Commented: (FELIX-2847) NPE in
ConfigurationManager.java:1003 (static String toString( ServiceReference
ref ))
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (FELIX-2847) NPE in ConfigurationManager.java:1003
(static String toString( ServiceReference ref ))
Posted by "Felix Meschberger (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated FELIX-2847:
-------------------------------------
Fix Version/s: (was: configadmin-1.2.10)
configadmin-1.4.0
> 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
> Fix For: configadmin-1.4.0
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (FELIX-2847) NPE in ConfigurationManager.java:1003
(static String toString( ServiceReference ref ))
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger reassigned FELIX-2847:
----------------------------------------
Assignee: Felix Meschberger
> 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
[jira] Resolved: (FELIX-2847) NPE in ConfigurationManager.java:1003
(static String toString( ServiceReference ref ))
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved FELIX-2847.
--------------------------------------
Resolution: Fixed
Fix Version/s: configadmin-1.2.10
Fixed in Rev. 1071990.
> 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
> Fix For: configadmin-1.2.10
>
> 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