I'm testing a fix in Karaf, providing a default Converter service. Regards JB
On 04/04/2019 09:50, Eric Lilja wrote: > Nice you found it! Can't wait for 4.2.5! Will this fix be a change in > gogo or karaf? > > - Eric L > > On Thu, Apr 4, 2019 at 8:31 AM Jean-Baptiste Onofré <[email protected] > <mailto:[email protected]>> wrote: > > 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é > [email protected] <mailto:[email protected]> > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
