Disclaimer: OSGi Newbie here.
I am running Felix 1.0.3 and the Configuration Admin 1.0.0 (recently
released). I have the following bundles:
Bundle 1: Uses the FilePersistenceManager service to store some simple
configuration for service.pid "myservice.piddy"
Bundle 2: Registers a ManagedService with service.pid "myservice.piddy"
I see that the configuration is indeed stored in
<cache>/bundle#/data/config/myservice/piddy.config.
TMK, the expected results are that when I start Bundle 2, the
ManagedService's updated() method should get called and it should receive
the configuration create by Bundle 1. What actually happens is that Bundle 2
starts, but the updated() method does not get called and the Configuration
Admin's UpdateThread throws the following exception:
*ERROR* Unexpected problem executing task
java.lang.NullPointerException
at
org.apache.felix.cm.file.FilePersistenceManager.encodePid(FilePersistenceManager.java:171)
at
org.apache.felix.cm.file.FilePersistenceManager.getFile(FilePersistenceManager.java:535)
at
org.apache.felix.cm.file.FilePersistenceManager.exists(FilePersistenceManager.java:390)
at
org.apache.felix.cm.impl.ConfigurationImpl.isDeleted(ConfigurationImpl.java:348)
at
org.apache.felix.cm.impl.ConfigurationImpl.setBundleLocation(ConfigurationImpl.java:210)
at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:827)
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:89)
Any help would be greatly appreciated.
-Rob
--
View this message in context:
http://www.nabble.com/NullPointerException-when-using-Configuration-Admin-service-tp15344879p15344879.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]