karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf-4.2.4 - Unexpected SCR behavior
Date Thu, 04 Apr 2019 06:27:15 GMT
Hi,

I found the cause of this change: Felix SCR doesn't "embed" the
ComponentCommandsConverter anymore, it uses a service reference.
The Converter is expected to be provided by gogo runtime/karaf shell,
but it's not.

I'm fixing that, PR will follow.

I have some other fixes on the way, we can expect Karaf 4.2.5 for next week.

Regards
JB

On 24/03/2019 15:52, Erwin Hogeweg wrote:
> Hi,
> 
> I upgraded a project to Karaf-4.2.4, which went very smooth. Kudos to
> the Karaf team.
> 
> The only issue I am struggling with is the behavior of the scr command.
> scr:list used to give a clear list with installed components, now it
> returns a hard to read JSON string. Also scr:info <CID> used to show the
> details of a component, now it throws an error. See below.
> 
> Am I missing something?
> 
> Kind Regards,
> 
> Erwin
> 
> 
> 
> *karaf*@root()> feature:installscr
> *karaf*@root()> scr:list
> {"name":"ServiceCo...timeMBean", "bundle":{"id":46,
> "lastModified":1553439020606, "state":32,
> "symbolicName":"org.apach...anagement", "version":"4.2.4"},
> "factory":null, "scope":"singleton",
> "implementationClass":"org.apach...MBeanImpl", "defaultEnabled":true,
> "immediate":true, "serviceInterfaces":["org.apach...timeMBean"],
> "properties":{"hidden.component":"true"},
> "references":[{"name":"ScrService",
> "interfaceName":"org.osgi....ntRuntime", "cardinality":"1..1",
> "policy":"static", "policyOption":"reluctant", "target":null,
> "bind":"setScrService", "unbind":"unsetScrService", "updated":null,
> "field":null, "fieldOption":null, "scope":"bundle", "parameter":null,
> "collectionType":null},{"name":"mBeanServer",
> "interfaceName":"javax.man...eanServer", "cardinality":"1..1",
> "policy":"static", "policyOption":"reluctant", "target":null,
> "bind":"setmBeanServer", "unbind":"unsetmBeanServer", "updated":null,
> "field":null, "fieldOption":null, "scope":"bundle", "parameter":null,
> "collectionType":null}], "activate":"activate",
> "deactivate":"deactivate", "modified":null,
> "configurationPolicy":"optional",
> "configurationPid":["ServiceCo...timeMBean"], "factoryProperties":null,
> "activationFields":[], "init":0}
> 
> 
> *karaf*@root()> scr:info0
> 10:18:38.884 [Karaf local console user karaf] ERROR
> org.apache.karaf.shell.support.ShellUtil - Exception caught while
> executing command
> java.lang.IllegalArgumentException: No component description matching "0".
> 
> *karaf*@root()> la|grep-i scr
> 46 │ Active   │  30 │ 4.2.4              │ Apache Karaf :: *SCR*::
> Management MBeans
> 47 │ Active   │  30 │ 4.2.4              │ Apache Karaf :: *SCR*::
> Bundle State
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message