From user-return-20353-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Mon Apr 8 12:18:15 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id D67A0180627 for ; Mon, 8 Apr 2019 14:18:14 +0200 (CEST) Received: (qmail 97905 invoked by uid 500); 8 Apr 2019 11:58:36 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 97895 invoked by uid 99); 8 Apr 2019 11:58:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2019 11:58:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8D7B6C2243 for ; Mon, 8 Apr 2019 12:18:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.8 X-Spam-Level: ** X-Spam-Status: No, score=2.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id SxJGuUEFFaCZ for ; Mon, 8 Apr 2019 12:18:11 +0000 (UTC) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6DB896254A for ; Mon, 8 Apr 2019 12:18:11 +0000 (UTC) Received: by mail-lf1-f52.google.com with SMTP id u21so9339997lfu.2 for ; Mon, 08 Apr 2019 05:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ggDNKi5VYl/KSL/ClJpctp1yALMWGSd5D5k0sF+EAVY=; b=m081aFJmOqU9u06vJNcmqm3+JwzFoc1r4lJNvoSGTXhI92Z6hXN2ePhVwmFDjUdQRO /VzXISv4dVUtR7alap9v6ywDvAVKwtA4zmEBGo3XxfpU8LTIfV1WJTS11hEqoIpYep+6 CihukAse2EaG3KSezuIdFF3vNm0GP6PD2SQ/ig8f+QVm+DBkgd+xAquVugMuz9BUPsfY 1aPURZdrGSgt9MyXEmmTfoi1wov7dcsAVKykskohjXirmjkRvgjVrAnn2v+qYnHZMqhl YL+UFF9qQ3H1oUJlhdRZGko8RZax3iZ0oj7hSYPkjYGiZ+tmQFr0Q4RGmFj+PJ9K+i17 WRHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ggDNKi5VYl/KSL/ClJpctp1yALMWGSd5D5k0sF+EAVY=; b=Qexc8Igf39V/ZfNofsp+Ugu5sE70vv5b82EAqO5QcFe4JstrdtPjCoL7h/7fwJm0UZ dmFqtf8AnN5/YuHrxJbPJjDOT/lWOB3+5n66POD7Lco1sMvgEiaGjXn9reFwQKoKwHQi nBTJ3WHMlmG0JKZH0f1vHsowbPLnDC2Om413Zkzme7z/wygaifoOwQtI6fLRVTkJHFZ1 m77I9XEMFbXlNeS/iaFBf1xruTl7W8ZbXTeBbaYqx3lifwud2bzX3NCTC/XPortRwi0V cmjoAuKWsJqc06JFlLdY+NLVJVMZtkGgSvkZSwleiORMbYoJ/av+0qAVEo4Mu4aoJ7ud kVDw== X-Gm-Message-State: APjAAAWsdO+O1vou2FvaSRwqz1noHuBpEzeC2c7T92mzW+vw/vUDuVh3 rrKIvRSgeiv9YHE7FHxsQXVy7WROBq/pLIpK7V/jTw== X-Google-Smtp-Source: APXvYqwaeHOZIM/4NIrceMLxLuGIPL70ZkukWcPauFu9IMwZTE0SoxBi17pNvAOTc/KF7390O8u7vakL9hlwT12OC8E= X-Received: by 2002:a19:a40b:: with SMTP id q11mr15807292lfc.33.1554725889818; Mon, 08 Apr 2019 05:18:09 -0700 (PDT) MIME-Version: 1.0 References: <674c553d-b996-82ce-cebe-6a74d8fddd9e@nanthrax.net> <10D945B2-D946-4176-8FA1-7D76D501972A@me.com> In-Reply-To: From: Eric Lilja Date: Mon, 8 Apr 2019 14:17:58 +0200 Message-ID: Subject: Re: Karaf-4.2.4 - Unexpected SCR behavior To: user@karaf.apache.org Content-Type: multipart/alternative; boundary="00000000000062c5ac058603d4f0" --00000000000062c5ac058603d4f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the update, JB! On Mon, Apr 8, 2019 at 1:32 PM Jean-Baptiste Onofr=C3=A9 = 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 > > wrote: > > > > Thanks JB. > > > > Erwin > > > > > > > On Apr 4, 2019, at 02:27, Jean-Baptiste Onofr=C3=A9 > > 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, no= w > it > > >> returns a hard to read JSON string. Also scr:info 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 whil= e > > >> executing command > > >> java.lang.IllegalArgumentException: No component description > > matching "0". > > >> > > >> *karaf*@root()> la|grep-i scr > > >> 46 =E2=94=82 Active =E2=94=82 30 =E2=94=82 4.2.4 = =E2=94=82 Apache Karaf :: *SCR*:: > > >> Management MBeans > > >> 47 =E2=94=82 Active =E2=94=82 30 =E2=94=82 4.2.4 = =E2=94=82 Apache Karaf :: *SCR*:: > > >> Bundle State > > >> > > > > > > -- > > > Jean-Baptiste Onofr=C3=A9 > > > jbonofre@apache.org > > > http://blog.nanthrax.net > > > Talend - http://www.talend.com > > > > -- > Jean-Baptiste Onofr=C3=A9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com > --00000000000062c5ac058603d4f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the update, JB!

On Mon, Apr 8, 2019 at 1:32 PM J= ean-Baptiste Onofr=C3=A9 <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 no= w
> 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
> <mailto:e= rwin.hogeweg@me.com>> wrote:
>
>=C2=A0 =C2=A0 =C2=A0Thanks JB.
>
>=C2=A0 =C2=A0 =C2=A0Erwin
>
>
>=C2=A0 =C2=A0 =C2=A0> On Apr 4, 2019, at 02:27, Jean-Baptiste Onofr= =C3=A9 <jb@nanthrax= .net
>=C2=A0 =C2=A0 =C2=A0<mailto:jb@nanthrax.net>> wrote:
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> Hi,
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> I found the cause of this change: Felix SCR do= esn't "embed" the
>=C2=A0 =C2=A0 =C2=A0> ComponentCommandsConverter anymore, it uses a = service reference.
>=C2=A0 =C2=A0 =C2=A0> The Converter is expected to be provided by go= go runtime/karaf shell,
>=C2=A0 =C2=A0 =C2=A0> but it's not.
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> I'm fixing that, PR will follow.
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> I have some other fixes on the way, we can exp= ect Karaf 4.2.5 for
>=C2=A0 =C2=A0 =C2=A0next week.
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> Regards
>=C2=A0 =C2=A0 =C2=A0> JB
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> On 24/03/2019 15:52, Erwin Hogeweg wrote:
>=C2=A0 =C2=A0 =C2=A0>> Hi,
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> I upgraded a project to Karaf-4.2.4, which= went very smooth. Kudos to
>=C2=A0 =C2=A0 =C2=A0>> the Karaf team.
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> The only issue I am struggling with is the= behavior of the scr
>=C2=A0 =C2=A0 =C2=A0command.
>=C2=A0 =C2=A0 =C2=A0>> scr:list used to give a clear list with in= stalled components, now it
>=C2=A0 =C2=A0 =C2=A0>> returns a hard to read JSON string. Also s= cr:info <CID> used to
>=C2=A0 =C2=A0 =C2=A0show the
>=C2=A0 =C2=A0 =C2=A0>> details of a component, now it throws an e= rror. See below.
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> Am I missing something?
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> Kind Regards,
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> Erwin
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> *karaf*@root()> feature:installscr
>=C2=A0 =C2=A0 =C2=A0>> *karaf*@root()> scr:list
>=C2=A0 =C2=A0 =C2=A0>> {"name":"ServiceCo...timeMB= ean", "bundle":{"id":46,
>=C2=A0 =C2=A0 =C2=A0>> "lastModified":1553439020606, &q= uot;state":32,
>=C2=A0 =C2=A0 =C2=A0>> "symbolicName":"org.apach..= .anagement", "version":"4.2.4"},
>=C2=A0 =C2=A0 =C2=A0>> "factory":null, "scope"= ;:"singleton",
>=C2=A0 =C2=A0 =C2=A0>> "implementationClass":"org.= apach...MBeanImpl", "defaultEnabled":true,
>=C2=A0 =C2=A0 =C2=A0>> "immediate":true, "serviceI= nterfaces":["org.apach...timeMBean"],
>=C2=A0 =C2=A0 =C2=A0>> "properties":{"hidden.compo= nent":"true"},
>=C2=A0 =C2=A0 =C2=A0>> "references":[{"name":= "ScrService",
>=C2=A0 =C2=A0 =C2=A0>> "interfaceName":"org.osgi..= ..ntRuntime", "cardinality":"1..1",
>=C2=A0 =C2=A0 =C2=A0>> "policy":"static", &qu= ot;policyOption":"reluctant", "target":null,
>=C2=A0 =C2=A0 =C2=A0>> "bind":"setScrService"= , "unbind":"unsetScrService", "updated":null,=
>=C2=A0 =C2=A0 =C2=A0>> "field":null, "fieldOption&= quot;:null, "scope":"bundle", "parameter":nul= l,
>=C2=A0 =C2=A0 =C2=A0>> "collectionType":null},{"na= me":"mBeanServer",
>=C2=A0 =C2=A0 =C2=A0>> "interfaceName":"javax.man.= ..eanServer", "cardinality":"1..1",
>=C2=A0 =C2=A0 =C2=A0>> "policy":"static", &qu= ot;policyOption":"reluctant", "target":null,
>=C2=A0 =C2=A0 =C2=A0>> "bind":"setmBeanServer"= ;, "unbind":"unsetmBeanServer", "updated":nul= l,
>=C2=A0 =C2=A0 =C2=A0>> "field":null, "fieldOption&= quot;:null, "scope":"bundle", "parameter":nul= l,
>=C2=A0 =C2=A0 =C2=A0>> "collectionType":null}], "a= ctivate":"activate",
>=C2=A0 =C2=A0 =C2=A0>> "deactivate":"deactivate&qu= ot;, "modified":null,
>=C2=A0 =C2=A0 =C2=A0>> "configurationPolicy":"opti= onal",
>=C2=A0 =C2=A0 =C2=A0>> "configurationPid":["Servic= eCo...timeMBean"],
>=C2=A0 =C2=A0 =C2=A0"factoryProperties":null,
>=C2=A0 =C2=A0 =C2=A0>> "activationFields":[], "ini= t":0}
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> *karaf*@root()> scr:info0
>=C2=A0 =C2=A0 =C2=A0>> 10:18:38.884 [Karaf local console user kar= af] ERROR
>=C2=A0 =C2=A0 =C2=A0>> org.apache.karaf.shell.support.ShellUtil -= Exception caught while
>=C2=A0 =C2=A0 =C2=A0>> executing command
>=C2=A0 =C2=A0 =C2=A0>> java.lang.IllegalArgumentException: No com= ponent description
>=C2=A0 =C2=A0 =C2=A0matching "0".
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>> *karaf*@root()> la|grep-i scr
>=C2=A0 =C2=A0 =C2=A0>> 46 =E2=94=82 Active=C2=A0 =C2=A0=E2=94=82= =C2=A0 30 =E2=94=82 4.2.4=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =E2=94=82 Apache Karaf :: *SCR*::
>=C2=A0 =C2=A0 =C2=A0>> Management MBeans
>=C2=A0 =C2=A0 =C2=A0>> 47 =E2=94=82 Active=C2=A0 =C2=A0=E2=94=82= =C2=A0 30 =E2=94=82 4.2.4=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =E2=94=82 Apache Karaf :: *SCR*::
>=C2=A0 =C2=A0 =C2=A0>> Bundle State
>=C2=A0 =C2=A0 =C2=A0>>
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> --
>=C2=A0 =C2=A0 =C2=A0> Jean-Baptiste Onofr=C3=A9
>=C2=A0 =C2=A0 =C2=A0> jbonofre@apache.org <mailto:jbonofre@apache.org>
>=C2=A0 =C2=A0 =C2=A0> http://blog.nanthrax.net
>=C2=A0 =C2=A0 =C2=A0> Talend - http://www.talend.com
>

--
Jean-Baptiste Onofr=C3=A9
jbonofre@apache.or= g
h= ttp://blog.nanthrax.net
Talend - http://www.talend.com
--00000000000062c5ac058603d4f0--