Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
configadmin-1.2.8
-
None
Description
We are using Configuration Admin in our open source project, where we get the following exception in our integration tests:
*ERROR* Unexpected problem executing task java.lang.NullPointerException: reference and pid must not be null at org.osgi.service.cm.ConfigurationEvent.<init>(ConfigurationEvent.java:120) at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1818) at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104) at java.lang.Thread.run(Thread.java:662)
I'm not quite sure what is going on, and the NPE does not occur every time, but it does seem to keep happening often enough to warrant a bug report as the code that is being executed is not directly invoked by the test. For more background, look at (for example) this log:
http://bamboo.amdatu.org/bamboo/browse/AMDATUPLATFORM-AMDATUGIT-JOB1-74/log
At least some null checks would be in order, plus maybe a better log message that tells us which of the two actually was null (I know this is an OSGi class that's doing the reporting, but we could check ourselves before invoking its constructor).
Attachments
Issue Links
- duplicates
-
FELIX-2813 NPE in UpdateThread when updating a configuration right after ConfigurationAdmin service starts
- Closed