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 14C25200CCF for ; Mon, 24 Jul 2017 18:17:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 12C77163D02; Mon, 24 Jul 2017 16:17:41 +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 326E7163BF5 for ; Mon, 24 Jul 2017 18:17:40 +0200 (CEST) Received: (qmail 8131 invoked by uid 500); 24 Jul 2017 16:17:38 -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 8120 invoked by uid 99); 24 Jul 2017 16:17:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2017 16:17:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1FD71C004A for ; Mon, 24 Jul 2017 16:17:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id i3-AmN9H-kja for ; Mon, 24 Jul 2017 16:17:36 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 913655F3BC for ; Mon, 24 Jul 2017 16:17:36 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1A384E00A3 for ; Mon, 24 Jul 2017 16:17:36 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 006C821EE2 for ; Mon, 24 Jul 2017 16:17:30 +0000 (UTC) Date: Mon, 24 Jul 2017 16:17:30 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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, 24 Jul 2017 16:17:41 -0000 [ https://issues.apache.org/jira/browse/KARAF-4174?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1609= 8635#comment-16098635 ]=20 ASF subversion and git services commented on KARAF-4174: -------------------------------------------------------- Commit 380929f830b152d5c86bcf3ae5b143f1f7db20f2 in karaf's branch refs/head= s/karaf-4.1.x from [~jbonofre] [ https://git-wip-us.apache.org/repos/asf?p=3Dkaraf.git;h=3D380929f ] [KARAF-4174] Prevent NPE in obr:info command if resource is not complete > 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: cave-4.0.1, 4.1.2, 4.0.10 > > > 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.4.14#64029)