Hi Eric, I'm fixing that (and couple of other issues), then I will submit 4.2.5 to vote.
Regards JB On 26/03/2019 11:45, Eric Lilja wrote: > Is it possible we can get a 4.2.5 when this has been fixed (I see a few > other JIRAs has been fixed as well)? This functionality is essential to > us as we have a lot of interactive users and I believe this problem will > make it hard for my organization to move up to 4.2.x (and we want to use > the latest patch-release) > > - Eric L > > On Sun, Mar 24, 2019 at 6:48 PM Erwin Hogeweg <[email protected] > <mailto:[email protected]>> wrote: > > Thanks JB. > > Erwin > > > > On Mar 24, 2019, at 12:05, Jean-Baptiste Onofré <[email protected] > <mailto:[email protected]>> wrote: > > > > Hi Erwin, > > > > That's due to change in Felix SCR. > > > > I will fix that in Karaf, sorry about that. > > > > scr:info works for me, but I will double check. > > > > 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
