You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Erwin Hogeweg <er...@me.com> on 2019/03/24 14:52:43 UTC
Karaf-4.2.4 - Unexpected SCR behavior
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:install scr
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:info 0
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
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
Ah, great news, thank you, JB!
- Eric L
On Thu, Apr 11, 2019 at 3:51 PM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:
> Yes, I'm testing the upgrade to Hibernate 5.4.2.Final (Hibernate 5.2.x
> will be part of enterprise-legacy feature).
>
> The PR should be ready today.
>
> Regards
> JB
>
> On 11/04/2019 15:41, Eric Lilja wrote:
> > How's it looking for KARAF-6199 - Upgrade Hibernate feature to work with
> > Java 11, will it also be part of 4.2.5 as Jira currently claims?
> >
> > - Eric L
> >
> > On Thu, Apr 11, 2019 at 10:24 AM Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> wrote:
> >
> > Hi,
> >
> > I'm on KARAF-6229, it will be included in 4.2.5.
> >
> > For Pax Web, I will take a look, but I will release 4.2.5 with
> current
> > Pax Web version, and I will do a new 4.2.x with Pax Web updated.
> >
> > Regards
> > JB
> >
> > On 11/04/2019 09:57, Eric Lilja wrote:
> > > I guess we also need a new pax-web with a fix for the
> SessionListener
> > > being registered twice (not sure it has a Jira?) and a fix for
> > > KARAF-6229 (karaf-maven-plugin deploy/install zip twice) before
> 4.2.5
> > > can be released?
> > >
> > > - Eric L
> > >
> > > On Mon, Apr 8, 2019 at 2:17 PM Eric Lilja <mindcooler@gmail.com
> > <ma...@gmail.com>
> > > <mailto:mindcooler@gmail.com <ma...@gmail.com>>>
> wrote:
> > >
> > > Thanks for the update, JB!
> > >
> > > On Mon, Apr 8, 2019 at 1:32 PM Jean-Baptiste Onofré
> > <jb@nanthrax.net <ma...@nanthrax.net>
> > > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> > >
> > > Hi,
> > >
> > > As said last week, I have some other issues on the way.
> > >
> > > My plan is to submit 4.2.5 to vote by the end of this week.
> > >
> > > Regards
> > > JB
> > >
> > > On 08/04/2019 11:36, Eric Lilja wrote:
> > > > I saw on Jira that this issue has been fixed (yay!), how
> far
> > > are we now
> > > > from a vote on Karaf 4.2.5, i.e., what other fixes need
> > to go
> > > into the
> > > > release? Any chance for Karaf 4.2.5 to be out before the
> > > weekend? Just
> > > > asking, since we're starting a new project on Friday,
> and I
> > > intend to
> > > > use Karaf in it.
> > > >
> > > > - Eric L
> > > >
> > > > On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg
> > > <erwin.hogeweg@me.com <ma...@me.com>
> > <mailto:erwin.hogeweg@me.com <ma...@me.com>>
> > > > <mailto:erwin.hogeweg@me.com
> > <ma...@me.com> <mailto:erwin.hogeweg@me.com
> > <ma...@me.com>>>>
> > > wrote:
> > > >
> > > > Thanks JB.
> > > >
> > > > Erwin
> > > >
> > > >
> > > > > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré
> > > <jb@nanthrax.net <ma...@nanthrax.net>
> > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
> > > > <mailto:jb@nanthrax.net <ma...@nanthrax.net>
> > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> 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é
> > > > > jbonofre@apache.org <ma...@apache.org>
> > <mailto:jbonofre@apache.org <ma...@apache.org>>
> > > <mailto:jbonofre@apache.org <ma...@apache.org>
> > <mailto:jbonofre@apache.org <ma...@apache.org>>>
> > > > > http://blog.nanthrax.net
> > > > > Talend - http://www.talend.com
> > > >
> > >
> > > --
> > > Jean-Baptiste Onofré
> > > jbonofre@apache.org <ma...@apache.org>
> > <mailto:jbonofre@apache.org <ma...@apache.org>>
> > > http://blog.nanthrax.net
> > > Talend - http://www.talend.com
> > >
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org <ma...@apache.org>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, I'm testing the upgrade to Hibernate 5.4.2.Final (Hibernate 5.2.x
will be part of enterprise-legacy feature).
The PR should be ready today.
Regards
JB
On 11/04/2019 15:41, Eric Lilja wrote:
> How's it looking for KARAF-6199 - Upgrade Hibernate feature to work with
> Java 11, will it also be part of 4.2.5 as Jira currently claims?
>
> - Eric L
>
> On Thu, Apr 11, 2019 at 10:24 AM Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
> Hi,
>
> I'm on KARAF-6229, it will be included in 4.2.5.
>
> For Pax Web, I will take a look, but I will release 4.2.5 with current
> Pax Web version, and I will do a new 4.2.x with Pax Web updated.
>
> Regards
> JB
>
> On 11/04/2019 09:57, Eric Lilja wrote:
> > I guess we also need a new pax-web with a fix for the SessionListener
> > being registered twice (not sure it has a Jira?) and a fix for
> > KARAF-6229 (karaf-maven-plugin deploy/install zip twice) before 4.2.5
> > can be released?
> >
> > - Eric L
> >
> > On Mon, Apr 8, 2019 at 2:17 PM Eric Lilja <mindcooler@gmail.com
> <ma...@gmail.com>
> > <mailto:mindcooler@gmail.com <ma...@gmail.com>>> wrote:
> >
> > Thanks for the update, JB!
> >
> > On Mon, Apr 8, 2019 at 1:32 PM Jean-Baptiste Onofré
> <jb@nanthrax.net <ma...@nanthrax.net>
> > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> >
> > Hi,
> >
> > As said last week, I have some other issues on the way.
> >
> > My plan is to submit 4.2.5 to vote by the end of this week.
> >
> > Regards
> > JB
> >
> > On 08/04/2019 11:36, Eric Lilja wrote:
> > > I saw on Jira that this issue has been fixed (yay!), how far
> > are we now
> > > from a vote on Karaf 4.2.5, i.e., what other fixes need
> to go
> > into the
> > > release? Any chance for Karaf 4.2.5 to be out before the
> > weekend? Just
> > > asking, since we're starting a new project on Friday, and I
> > intend to
> > > use Karaf in it.
> > >
> > > - Eric L
> > >
> > > On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg
> > <erwin.hogeweg@me.com <ma...@me.com>
> <mailto:erwin.hogeweg@me.com <ma...@me.com>>
> > > <mailto:erwin.hogeweg@me.com
> <ma...@me.com> <mailto:erwin.hogeweg@me.com
> <ma...@me.com>>>>
> > wrote:
> > >
> > > Thanks JB.
> > >
> > > Erwin
> > >
> > >
> > > > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré
> > <jb@nanthrax.net <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
> > > <mailto:jb@nanthrax.net <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> 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é
> > > > jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> > <mailto:jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>>
> > > > http://blog.nanthrax.net
> > > > Talend - http://www.talend.com
> > >
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
How's it looking for KARAF-6199 - Upgrade Hibernate feature to work with
Java 11, will it also be part of 4.2.5 as Jira currently claims?
- Eric L
On Thu, Apr 11, 2019 at 10:24 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:
> Hi,
>
> I'm on KARAF-6229, it will be included in 4.2.5.
>
> For Pax Web, I will take a look, but I will release 4.2.5 with current
> Pax Web version, and I will do a new 4.2.x with Pax Web updated.
>
> Regards
> JB
>
> On 11/04/2019 09:57, Eric Lilja wrote:
> > I guess we also need a new pax-web with a fix for the SessionListener
> > being registered twice (not sure it has a Jira?) and a fix for
> > KARAF-6229 (karaf-maven-plugin deploy/install zip twice) before 4.2.5
> > can be released?
> >
> > - Eric L
> >
> > On Mon, Apr 8, 2019 at 2:17 PM Eric Lilja <mindcooler@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> > Thanks for the update, JB!
> >
> > On Mon, Apr 8, 2019 at 1:32 PM Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> wrote:
> >
> > Hi,
> >
> > As said last week, I have some other issues on the way.
> >
> > My plan is to submit 4.2.5 to vote by the end of this week.
> >
> > Regards
> > JB
> >
> > On 08/04/2019 11:36, Eric Lilja wrote:
> > > I saw on Jira that this issue has been fixed (yay!), how far
> > are we now
> > > from a vote on Karaf 4.2.5, i.e., what other fixes need to go
> > into the
> > > release? Any chance for Karaf 4.2.5 to be out before the
> > weekend? Just
> > > asking, since we're starting a new project on Friday, and I
> > intend to
> > > use Karaf in it.
> > >
> > > - Eric L
> > >
> > > On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg
> > <erwin.hogeweg@me.com <ma...@me.com>
> > > <mailto:erwin.hogeweg@me.com <ma...@me.com>>>
> > wrote:
> > >
> > > Thanks JB.
> > >
> > > Erwin
> > >
> > >
> > > > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré
> > <jb@nanthrax.net <ma...@nanthrax.net>
> > > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> 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é
> > > > jbonofre@apache.org <ma...@apache.org>
> > <mailto:jbonofre@apache.org <ma...@apache.org>>
> > > > http://blog.nanthrax.net
> > > > Talend - http://www.talend.com
> > >
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org <ma...@apache.org>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
I'm on KARAF-6229, it will be included in 4.2.5.
For Pax Web, I will take a look, but I will release 4.2.5 with current
Pax Web version, and I will do a new 4.2.x with Pax Web updated.
Regards
JB
On 11/04/2019 09:57, Eric Lilja wrote:
> I guess we also need a new pax-web with a fix for the SessionListener
> being registered twice (not sure it has a Jira?) and a fix for
> KARAF-6229 (karaf-maven-plugin deploy/install zip twice) before 4.2.5
> can be released?
>
> - Eric L
>
> On Mon, Apr 8, 2019 at 2:17 PM Eric Lilja <mindcooler@gmail.com
> <ma...@gmail.com>> wrote:
>
> Thanks for the update, JB!
>
> On Mon, Apr 8, 2019 at 1:32 PM Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
> Hi,
>
> As said last week, I have some other issues on the way.
>
> My plan is to submit 4.2.5 to vote by the end of this week.
>
> Regards
> JB
>
> On 08/04/2019 11:36, Eric Lilja wrote:
> > I saw on Jira that this issue has been fixed (yay!), how far
> are we now
> > from a vote on Karaf 4.2.5, i.e., what other fixes need to go
> into the
> > release? Any chance for Karaf 4.2.5 to be out before the
> weekend? Just
> > asking, since we're starting a new project on Friday, and I
> intend to
> > use Karaf in it.
> >
> > - Eric L
> >
> > On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg
> <erwin.hogeweg@me.com <ma...@me.com>
> > <mailto:erwin.hogeweg@me.com <ma...@me.com>>>
> wrote:
> >
> > Thanks JB.
> >
> > Erwin
> >
> >
> > > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré
> <jb@nanthrax.net <ma...@nanthrax.net>
> > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> 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é
> > > jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> > > http://blog.nanthrax.net
> > > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
I guess we also need a new pax-web with a fix for the SessionListener being
registered twice (not sure it has a Jira?) and a fix for KARAF-6229
(karaf-maven-plugin deploy/install zip twice) before 4.2.5 can be released?
- Eric L
On Mon, Apr 8, 2019 at 2:17 PM Eric Lilja <mi...@gmail.com> wrote:
> Thanks for the update, JB!
>
> On Mon, Apr 8, 2019 at 1:32 PM Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
>> Hi,
>>
>> As said last week, I have some other issues on the way.
>>
>> My plan is to submit 4.2.5 to vote by the end of this week.
>>
>> Regards
>> JB
>>
>> On 08/04/2019 11:36, Eric Lilja wrote:
>> > I saw on Jira that this issue has been fixed (yay!), how far are we now
>> > from a vote on Karaf 4.2.5, i.e., what other fixes need to go into the
>> > release? Any chance for Karaf 4.2.5 to be out before the weekend? Just
>> > asking, since we're starting a new project on Friday, and I intend to
>> > use Karaf in it.
>> >
>> > - Eric L
>> >
>> > On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg <erwin.hogeweg@me.com
>> > <ma...@me.com>> wrote:
>> >
>> > Thanks JB.
>> >
>> > Erwin
>> >
>> >
>> > > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré <jb@nanthrax.net
>> > <ma...@nanthrax.net>> 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é
>> > > jbonofre@apache.org <ma...@apache.org>
>> > > http://blog.nanthrax.net
>> > > Talend - http://www.talend.com
>> >
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
Thanks for the update, JB!
On Mon, Apr 8, 2019 at 1:32 PM Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> Hi,
>
> As said last week, I have some other issues on the way.
>
> My plan is to submit 4.2.5 to vote by the end of this week.
>
> Regards
> JB
>
> On 08/04/2019 11:36, Eric Lilja wrote:
> > I saw on Jira that this issue has been fixed (yay!), how far are we now
> > from a vote on Karaf 4.2.5, i.e., what other fixes need to go into the
> > release? Any chance for Karaf 4.2.5 to be out before the weekend? Just
> > asking, since we're starting a new project on Friday, and I intend to
> > use Karaf in it.
> >
> > - Eric L
> >
> > On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg <erwin.hogeweg@me.com
> > <ma...@me.com>> wrote:
> >
> > Thanks JB.
> >
> > Erwin
> >
> >
> > > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> 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é
> > > jbonofre@apache.org <ma...@apache.org>
> > > http://blog.nanthrax.net
> > > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
As said last week, I have some other issues on the way.
My plan is to submit 4.2.5 to vote by the end of this week.
Regards
JB
On 08/04/2019 11:36, Eric Lilja wrote:
> I saw on Jira that this issue has been fixed (yay!), how far are we now
> from a vote on Karaf 4.2.5, i.e., what other fixes need to go into the
> release? Any chance for Karaf 4.2.5 to be out before the weekend? Just
> asking, since we're starting a new project on Friday, and I intend to
> use Karaf in it.
>
> - Eric L
>
> On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg <erwin.hogeweg@me.com
> <ma...@me.com>> wrote:
>
> Thanks JB.
>
> Erwin
>
>
> > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> 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é
> > jbonofre@apache.org <ma...@apache.org>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
I saw on Jira that this issue has been fixed (yay!), how far are we now
from a vote on Karaf 4.2.5, i.e., what other fixes need to go into the
release? Any chance for Karaf 4.2.5 to be out before the weekend? Just
asking, since we're starting a new project on Friday, and I intend to use
Karaf in it.
- Eric L
On Thu, Apr 4, 2019 at 3:27 PM Erwin Hogeweg <er...@me.com> wrote:
> Thanks JB.
>
> Erwin
>
>
> > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré <jb...@nanthrax.net> 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é
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
>
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Erwin Hogeweg <er...@me.com>.
Thanks JB.
Erwin
> On Apr 4, 2019, at 02:27, Jean-Baptiste Onofré <jb...@nanthrax.net> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é <jb@nanthrax.net
> <ma...@nanthrax.net>> 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é
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
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é <jb...@nanthrax.net> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yup, already on this ;)
Regards
JB
On 26/03/2019 13:20, Eric Lilja wrote:
> Hi JB! That is great news both for me and my organization, looking
> forward to seeing Karaf 4.2.5 soonish then! On a side note, it is also
> possible to get hibernate-validator 6.0.16 as part of it?
>
> - Eric L
>
> On Tue, Mar 26, 2019 at 12:01 PM Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
> 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
> <erwin.hogeweg@me.com <ma...@me.com>
> > <mailto:erwin.hogeweg@me.com <ma...@me.com>>> wrote:
> >
> > Thanks JB.
> >
> > Erwin
> >
> >
> > > On Mar 24, 2019, at 12:05, Jean-Baptiste Onofré
> <jb@nanthrax.net <ma...@nanthrax.net>
> > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> 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é
> > > jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> > > http://blog.nanthrax.net
> > > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
Hi JB! That is great news both for me and my organization, looking forward
to seeing Karaf 4.2.5 soonish then! On a side note, it is also possible to
get hibernate-validator 6.0.16 as part of it?
- Eric L
On Tue, Mar 26, 2019 at 12:01 PM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:
> 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 <erwin.hogeweg@me.com
> > <ma...@me.com>> wrote:
> >
> > Thanks JB.
> >
> > Erwin
> >
> >
> > > On Mar 24, 2019, at 12:05, Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> 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é
> > > jbonofre@apache.org <ma...@apache.org>
> > > http://blog.nanthrax.net
> > > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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 <erwin.hogeweg@me.com
> <ma...@me.com>> wrote:
>
> Thanks JB.
>
> Erwin
>
>
> > On Mar 24, 2019, at 12:05, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> 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é
> > jbonofre@apache.org <ma...@apache.org>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Eric Lilja <mi...@gmail.com>.
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 <er...@me.com> wrote:
> Thanks JB.
>
> Erwin
>
>
> > On Mar 24, 2019, at 12:05, Jean-Baptiste Onofré <jb...@nanthrax.net> 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é
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
>
>
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Erwin Hogeweg <er...@me.com>.
Thanks JB.
Erwin
> On Mar 24, 2019, at 12:05, Jean-Baptiste Onofré <jb...@nanthrax.net> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Re: Karaf-4.2.4 - Unexpected SCR behavior
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com