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 D6E60200CB0 for ; Fri, 23 Jun 2017 10:34:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D5750160BF2; Fri, 23 Jun 2017 08:34:04 +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 2662A160BD4 for ; Fri, 23 Jun 2017 10:34:03 +0200 (CEST) Received: (qmail 70799 invoked by uid 500); 23 Jun 2017 08:34:03 -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 70788 invoked by uid 99); 23 Jun 2017 08:34:03 -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; Fri, 23 Jun 2017 08:34:03 +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 C0322C65C0 for ; Fri, 23 Jun 2017 08:34:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled 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 pJkfcW7nWZmI for ; Fri, 23 Jun 2017 08:34:02 +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 A244C5FC4D for ; Fri, 23 Jun 2017 08:34:01 +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 D3D35E0D55 for ; Fri, 23 Jun 2017 08:34:00 +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 308E621DD5 for ; Fri, 23 Jun 2017 08:34:00 +0000 (UTC) Date: Fri, 23 Jun 2017 08:34:00 +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-5211) NPE in StoredWiringResolver if BundleEvent.UNRESOLVED handled before BundleEvent.RESOLVED event MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Jun 2017 08:34:05 -0000 [ https://issues.apache.org/jira/browse/KARAF-5211?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 reassigned KARAF-5211: ------------------------------------------- Assignee: Jean-Baptiste Onofr=C3=A9 > NPE in StoredWiringResolver if BundleEvent.UNRESOLVED handled before Bund= leEvent.RESOLVED event > -------------------------------------------------------------------------= ---------------------- > > Key: KARAF-5211 > URL: https://issues.apache.org/jira/browse/KARAF-5211 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.2.0, 4.1.1 > Reporter: Christopher Lockard > Assignee: Jean-Baptiste Onofr=C3=A9 > > When upgrading from karaf-4.0.7 to karaf-4.1.1 we are seeing several NPE = exceptions in the log related to Activator handling BundleEvent.UNRESOLVED = before BundleEvent.RESOLVED events are recieved. This results in a NPE in S= toredWiringResolver.delete(...) since the wiring map doesn't contain the bu= ndleId. > {code} > 16:26:50,110 | ERROR | blisher@704deff2 | org.eclipse.osgi | Framewor= kEvent ERROR - org.eclipse.osgi > java.lang.NullPointerException > at org.apache.karaf.features.extension.StoredWiringResolver.delet= e(StoredWiringResolver.java:110) [?:?] > at org.apache.karaf.features.extension.Activator.bundleChanged(Ac= tivator.java:53) [?:?] > at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatch= Event(BundleContextImpl.java:903) [?:?] > at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent= (EventManager.java:230) [?:?] > at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEven= tSynchronous(ListenerQueue.java:148) [?:?] > at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publ= ishBundleEventPrivileged(EquinoxEventPublisher.java:213) [?:?] > at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publ= ishBundleEvent(EquinoxEventPublisher.java:120) [?:?] > at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publ= ishBundleEvent(EquinoxEventPublisher.java:112) [?:?] > at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.pu= blishModuleEvent(EquinoxContainerAdaptor.java:156) [?:?] > at org.eclipse.osgi.container.ModuleContainer.unresolve0(ModuleCo= ntainer.java:936) [?:?] > at org.eclipse.osgi.container.ModuleContainer.unresolve(ModuleCon= tainer.java:788) [?:?] > at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleConta= iner.java:985) [?:?] > at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dis= patchEvent(ModuleContainer.java:1368) [?:?] > at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dis= patchEvent(ModuleContainer.java:1) [?:?] > at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent= (EventManager.java:230) [?:?] > at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.r= un(EventManager.java:340) [?:?] > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)