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

Guillaume Nodet commented on FELIX-3781:
----------------------------------------

Here is the ConfigAdmin log
{code}

2012-11-23 15:28:29,056 | DEBUG | NAPSHOT-thread-1 | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Registering service 
[org.osgi.service.cm.ManagedService, id=221, 
bundle=67/mvn:org.fusesource.fabric/fabric-agent/99-master-SNAPSHOT]
2012-11-23 15:28:29,056 | DEBUG | NAPSHOT-thread-1 | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | configure(ManagedService 
[org.osgi.service.cm.ManagedService, id=221, 
bundle=67/mvn:org.fusesource.fabric/fabric-agent/99-master-SNAPSHOT])
2012-11-23 15:28:29,056 | DEBUG | NAPSHOT-thread-1 | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Scheduling task 
ManagedService Update: pid=[org.fusesource.fabric.agent]
2012-11-23 15:28:29,056 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Running task ManagedService 
Update: pid=[org.fusesource.fabric.agent]
2012-11-23 15:28:29,057 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Found cached configuration 
org.fusesource.fabric.agent bound to null
2012-11-23 15:28:29,057 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | canReceive=true; 
bundle=mvn:org.fusesource.fabric/fabric-agent/99-master-SNAPSHOT; 
configuration=(unbound)
2012-11-23 15:28:29,057 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Dynamically binding config 
org.fusesource.fabric.agent to 
mvn:org.fusesource.fabric/fabric-agent/99-master-SNAPSHOT
2012-11-23 15:28:29,058 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | No 
SynchronousConfigurationListeners to send CM_LOCATION_CHANGED event to.
2012-11-23 15:28:29,058 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Scheduling task Fire 
ConfigurationEvent: pid=org.fusesource.fabric.agent
2012-11-23 15:28:29,058 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | LocationChanged not 
scheduled for org.fusesource.fabric.agent (old location is null or 
configuration is new)
2012-11-23 15:28:29,059 | DEBUG | ce.fabric.agent) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Running task Fire 
ConfigurationEvent: pid=org.fusesource.fabric.agent
2012-11-23 15:28:29,059 | DEBUG | ce.fabric.agent) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Sending CM_LOCATION_CHANGED 
event for org.fusesource.fabric.agent to 
[org.linkedin.zookeeper.client.LifecycleListener, 
org.osgi.service.cm.ConfigurationListener, id=205, 
bundle=59/mvn:org.fusesource.fabric/fabric-zookeeper/99-master-SNAPSHOT]
2012-11-23 15:28:29,059 | DEBUG | ce.fabric.agent) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Sending CM_LOCATION_CHANGED 
event for org.fusesource.fabric.agent to 
[org.osgi.service.cm.ConfigurationListener, id=191, 
bundle=47/mvn:org.apache.karaf.shell/org.apache.karaf.shell.config/2.3.0.fuse-71-038]
2012-11-23 15:28:29,059 | DEBUG | ce.fabric.agent) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Sending CM_LOCATION_CHANGED 
event for org.fusesource.fabric.agent to 
[org.osgi.service.cm.ConfigurationListener, 
org.apache.felix.fileinstall.ArtifactListener, 
org.apache.felix.fileinstall.ArtifactInstaller, id=14, 
bundle=6/mvn:org.apache.felix/org.apache.felix.fileinstall/3.3.11.fuse-71-038]
2012-11-23 15:28:29,059 | DEBUG | e.fabric.agent]) | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | Updating service 
org.fusesource.fabric.agent with configuration org.fusesource.fabric.agent@2
2012-11-23 15:28:29,060 | DEBUG | NAPSHOT-thread-1 | configadmin                
      | ?                                   ? | 5 - 
org.apache.felix.configadmin - 1.4.0.fuse-71-038 | [ManagedService Update: 
pid=[org.fusesource.fabric.agent]] scheduled
2012-11-23 15:28:29,065 | DEBUG | lixDispatchQueue | framework                  
      | ?                                   ? | 0 - org.apache.felix.framework 
- 4.0.3.fuse-71-038 | FrameworkEvent STARTLEVEL CHANGED - 
org.apache.felix.framework
{code}

                
> ConfigAdmin issue where the ManagedService is registered, the configuration 
> available but the service is not called
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3781
>                 URL: https://issues.apache.org/jira/browse/FELIX-3781
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>            Reporter: Guillaume Nodet
>
> It sometimes happen at Karaf startup.
> I've investigated the problem a bit and by looking at the ConfigAdmin object 
> when in such a state, I could find the ManagedService in the tracker and the 
> configuration is available in the configuration map.
> The configuration is even bound to the correct bundle.
> Still the service isn't called and I have a log statement the first line of 
> the updated() method to check about that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to