[ 
https://issues.apache.org/jira/browse/FELIX-4909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14562428#comment-14562428
 ] 

Carsten Ziegeler commented on FELIX-4909:
-----------------------------------------

[~fabianlange] I suggest you try the latest SCR implementation from trunk. 
We've seen some race conditions with 1.8.2 as well and they are all fixed in 
trunk

> NullPointer in Apache Karaf Felix ConfigAdmin/Fileinstall
> ---------------------------------------------------------
>
>                 Key: FELIX-4909
>                 URL: https://issues.apache.org/jira/browse/FELIX-4909
>             Project: Felix
>          Issue Type: Bug
>            Reporter: Fabian Lange
>
> {code}
> 2015-05-27 12:51:54,177 | INFO  | karaf/etc | fileinstall                     
>  | 4 - org.apache.felix.fileinstall - 3.4.3.SNAPSHOT | Creating configuration 
> from de.codecentric.TestService.cfg
> 2015-05-27 12:51:54,180 | ERROR | d5-abb8e2453597) | configadmin              
>         | 3 - org.apache.felix.configadmin - 1.8.0 | Unexpected problem 
> delivering configuration event to [org.osgi.service.cm.ConfigurationListener, 
> id=48, bundle=14/mvn:org.apache.felix/org.apache.felix.scr/1.8.2]
> java.lang.NullPointerException
>         at 
> org.apache.felix.scr.impl.config.ConfigurationSupport.configurationEvent(ConfigurationSupport.java:283)[14:org.apache.felix.scr:1.8.2]
>         at 
> org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2032)[3:org.apache.felix.configadmin:1.8.0]
>         at 
> org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2002)[3:org.apache.felix.configadmin:1.8.0]
>         at 
> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[3:org.apache.felix.configadmin:1.8.0]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
> {code}
> As you can see, the fileinstall discovered a new config file 3 ms before the 
> npe happened. The config file was created 2 seconds before that.
> This is coming from karaf 4M2, so this is fileinstall 3.4.3.SNAPSHOT and scr 
> 1.8.2
> Somehow this looks like a race condition to me.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to