For the tracking, I created: https://issues.apache.org/jira/browse/KARAF-6208
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é jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com