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 8E2B8200AF8 for ; Thu, 5 May 2016 17:43:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8A0E4160A08; Thu, 5 May 2016 15:43:14 +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 DBA331609F3 for ; Thu, 5 May 2016 17:43:13 +0200 (CEST) Received: (qmail 57394 invoked by uid 500); 5 May 2016 15:43:13 -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 57366 invoked by uid 99); 5 May 2016 15:43:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 15:43:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 025E92C14F9 for ; Thu, 5 May 2016 15:43:13 +0000 (UTC) Date: Thu, 5 May 2016 15:43:13 +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] [Assigned] (KARAF-4317) NullPointerException when adding a feature repository to a cluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 May 2016 15:43:14 -0000 [ https://issues.apache.org/jira/browse/KARAF-4317?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 reassigned KARAF-4317: ------------------------------------------- Assignee: Jean-Baptiste Onofr=C3=A9 > NullPointerException when adding a feature repository to a cluster > ------------------------------------------------------------------ > > Key: KARAF-4317 > URL: https://issues.apache.org/jira/browse/KARAF-4317 > Project: Karaf > Issue Type: Bug > Components: cellar-features > Reporter: Roland Hauser > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: cellar-4.0.1 > > > I have a cluster with 2 nodes. Both nodes have the feature listener enabl= ed (org.apache.karaf.cellar.node.cfg / feature.listener =3D true). > On node 1, I install a custom feature repository with following command: > {{feature:repo-add mvn:com.bechtle.terra/com.bechtle.terra.renderer.feat= ure/LATEST/xml/features}} > On node 2, I get a NullPointerException: > {code} > 2016-02-05 11:10:39,849 | ERROR | pool-50-thread-1 | RepositoryEventHandl= er | 64 - org.apache.karaf.cellar.features - 4.0.0 | CELLAR FEATU= RE: failed to add/remove repository URL mvn:com.bechtle.terra/com.bechtle.t= erra.renderer.feature/LATEST/xml/features > java.lang.NullPointerException > =09at org.apache.karaf.cellar.features.RepositoryEventHandler.handle(Repo= sitoryEventHandler.java:80)[64:org.apache.karaf.cellar.features:4.0.0] > =09at org.apache.karaf.cellar.features.RepositoryEventHandler.handle(Repo= sitoryEventHandler.java:29)[64:org.apache.karaf.cellar.features:4.0.0] > =09at org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispa= tchTask.java:57)[63:org.apache.karaf.cellar.core:4.0.0] > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:= 1.7.0_55] > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[= :1.7.0_55] > =09at java.lang.Thread.run(Unknown Source)[:1.7.0_55] > {code}=09 > The same effect occurs when I use the dedicated cluster command: > {{cluster:feature-repo-add default mvn:com.bechtle.terra/com.bechtle.terr= a.renderer.feature/LATEST/xml/features}} > When I disable the feature listener (org.apache.karaf.cellar.node.cfg / f= eature.listener =3D false), the cluster-command > {{cluster:feature-repo-add default mvn:com.bechtle.terra/com.bechtle.terr= a.renderer.feature/LATEST/xml/features}} > works as exepected. The repository is then also available on node 2 and t= he feature can be installed. > If I did something wrong, it would nevertheless be helpful if an error me= ssage would tell what caused the problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)