Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4C6F8200BAA for ; Mon, 19 Sep 2016 03:04:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4B2CB160AD8; Mon, 19 Sep 2016 01:04:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8E128160AC3 for ; Mon, 19 Sep 2016 03:04:21 +0200 (CEST) Received: (qmail 84050 invoked by uid 500); 19 Sep 2016 01:04:20 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 84023 invoked by uid 99); 19 Sep 2016 01:04:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 01:04:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 933312C0D59 for ; Mon, 19 Sep 2016 01:04:20 +0000 (UTC) Date: Mon, 19 Sep 2016 01:04:20 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-4174) NullPointerException when running obr:info on a bundle served by cave MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 01:04:22 -0000 [ https://issues.apache.org/jira/browse/KARAF-4174?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-4174: ---------------------------------------- Fix Version/s: (was: 4.0.7) 4.0.8 > NullPointerException when running obr:info on a bundle served by cave > --------------------------------------------------------------------- > > Key: KARAF-4174 > URL: https://issues.apache.org/jira/browse/KARAF-4174 > Project: Karaf > Issue Type: Bug > Components: cave-server, karaf-repository > Affects Versions: 4.0.4 > Reporter: Marton Papp > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 4.1.0, cave-4.0.1, 4.0.8 > > > Hello, > I am using Cave 4.0.0 with Karaf 4.0.4-SNAPSHOT (after having the same pr= oblem with 4.0.3) and I get a NullPointerException when running the obr:inf= o command on a bundle.=20 > To reproduce: > __ __ ____ =20 > / //_/____ __________ _/ __/ =20 > / ,< / __ `/ ___/ __ `/ /_ =20 > / /| |/ /_/ / / / /_/ / __/ =20 > /_/ |_|\__,_/_/ \__,_/_/ =20 > Apache Karaf (4.0.4-SNAPSHOT) > Hit '' for a list of available commands > and '[cmd] --help' for help on a specific command. > Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf. > karaf@root()> feature:repo-add cave 4.0.0 > Adding feature url mvn:org.apache.karaf.cave/apache-karaf-cave/4.0.0/xml/= features > karaf@root()> feature:install cave-server > karaf@root()> cave:repository-create my-repository > karaf@root()> cave:repository-upload my-repository mvn:org.apache.service= mix.bundles/org.apache.servicemix.bundles.ant/1.7.0_5 > karaf@root()> feature:install obr > karaf@root()> obr:url-add http://localhost:8181/cave/http/my-repository-r= epository.xml > karaf@root()> obr:list > Name | Symbolic Name | Version > -------------------------------------------------- > | org.apache.servicemix.bundles.ant | 1.7.0.5 > karaf@root()> obr:info org.apache.servicemix.bundles.ant > Error executing command: java.lang.NullPointerException > karaf@root()> display -n 3 > 2015-12-05 18:40:26,319 | INFO | pool-50-thread-1 | bundle = | 56 - org.apache.aries.spifly.dynamic.bundle - 1.0.1 | No 'SP= I-Provider' Manifest header. Skipping bundle: org.apache.karaf.obr.core > 2015-12-05 18:40:26,319 | INFO | pool-50-thread-1 | FeaturesServiceImpl = | 9 - org.apache.karaf.features.core - 4.0.4.SNAPSHOT | Done. > 2015-12-05 18:40:40,518 | ERROR | nsole user karaf | ShellUtil = | 44 - org.apache.karaf.shell.core - 4.0.4.SNAPSHOT | Exceptio= n caught while executing command > java.lang.NullPointerException > =09at org.apache.karaf.obr.command.InfoCommand.printResource(InfoCommand.= java:65)[118:org.apache.karaf.obr.core:4.0.4.SNAPSHOT] > =09at org.apache.karaf.obr.command.InfoCommand.doExecute(InfoCommand.java= :57)[118:org.apache.karaf.obr.core:4.0.4.SNAPSHOT] > =09at org.apache.karaf.obr.command.ObrCommandSupport.execute(ObrCommandSu= pport.java:58)[118:org.apache.karaf.obr.core:4.0.4.SNAPSHOT] > =09at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(Ac= tionCommand.java:83)[44:org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.exe= cute(SecuredCommand.java:67)[44:org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.exe= cute(SecuredCommand.java:87)[44:org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[= 44:org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java= :406)[44:org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[44:org.apache= .karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[44:= org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[44:= org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSes= sionImpl.java:94)[44:org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleS= essionImpl.java:270)[44:org.apache.karaf.shell.core:4.0.4.SNAPSHOT] > =09at java.lang.Thread.run(Thread.java:745)[:1.8.0_60] > karaf@root()>=20 > Regards -- This message was sent by Atlassian JIRA (v6.3.4#6332)