You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by j3rem1e <je...@gmail.com> on 2016/02/01 15:25:04 UTC

Karaf4.0.4: incoherent behavior of "scr:list"

Hello,

Randomly in my instance of Karaf 4.0.4, the "scr:list" didn't work as
expected. sometimes, the gogo command "scr:list" is executed, sometimes,
it's the karaf "scr:list".

the gogo "scr:list" is exported by the bundle org.apache.felix.scr :

karaf@root()> services org.apache.felix.scr

Apache Felix Declarative Services (128) provides:
-------------------------------------------------
[org.osgi.service.cm.ConfigurationListener]
[org.osgi.service.component.runtime.ServiceComponentRuntime]
[org.apache.felix.scr.impl.ScrGogoCommand]
[org.osgi.service.cm.ManagedService]

when the gogo command is choosen, restarting then "karaf scr commands" fix
this issue :

restart org.apache.karaf.scr.command

 i didn't see any protection in Karaf in order to choose which command
should be executed when two identical commands exist (the service tracker
register the last seen), neither i found an issue about it. is it a known
issue ?

Thanks,
Jérémie




--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf4-0-4-incoherent-behavior-of-scr-list-tp4045087.html
Sent from the Karaf - User mailing list archive at Nabble.com.