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 47CB6200D16 for ; Tue, 10 Oct 2017 15:05:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4638E1609E5; Tue, 10 Oct 2017 13:05:05 +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 8BC86160BE0 for ; Tue, 10 Oct 2017 15:05:04 +0200 (CEST) Received: (qmail 89050 invoked by uid 500); 10 Oct 2017 13:05: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 89039 invoked by uid 99); 10 Oct 2017 13:05:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2017 13:05:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E75301A5073 for ; Tue, 10 Oct 2017 13:05:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id oK_Pe8QylIdd for ; Tue, 10 Oct 2017 13:05:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 36B6C60E26 for ; Tue, 10 Oct 2017 13:05: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 6FEDFE0EAA for ; Tue, 10 Oct 2017 13:05: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 279542438A for ; Tue, 10 Oct 2017 13:05:00 +0000 (UTC) Date: Tue, 10 Oct 2017 13:05: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] [Updated] (KARAF-4885) Karaf does not gracefully handle a feature with a prerequisite feature that is already installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 10 Oct 2017 13:05:05 -0000 [ https://issues.apache.org/jira/browse/KARAF-4885?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-4885: ---------------------------------------- Fix Version/s: (was: 4.1.3) 4.1.4 > Karaf does not gracefully handle a feature with a prerequisite feature th= at is already installed > -------------------------------------------------------------------------= ----------------------- > > Key: KARAF-4885 > URL: https://issues.apache.org/jira/browse/KARAF-4885 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.1.0 > Reporter: Dariush Amiri > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 4.2.0, 4.1.4 > > > Here is a project on github that reproduces this issue: > https://github.com/damiri-ts/karaf-features-issue > After more investigation, the root cause seems to be the inability of kar= af to gracefully handle situations where a child feature has a prerequisite= feature that is already installed as part of a parent feature. It's confus= ing so I've included the feature definition below. Note that the aries-blue= print feature shows up twice. > > jasypt-encryption > aries-blueprint > > > framework > wrap > aries-blueprint > shell > shell-compat > feature > jaas > ssh > management > bundle > config > deployer > diagnostic > instance > kar > log > package > service > system > scr > jetty > pax-http-whiteboard > something-else > > This manifests itself in the logs like this: > 2016-12-05T18:23:57,843 | ERROR | FelixStartLevel |=20 > Felix | - - | Bundle org.objectweb.asm.all= =20 > [54] Error locking mvn:org.ow2.asm/asm-all/6.0_ALPHA=20 > (java.lang.IllegalStateException: Bundle in unexpected state.) > java.lang.IllegalStateException: Bundle in unexpected state. > at=20 > org.apache.felix.framework.Felix.acquireBundleLock(Felix.java:5272) [?:?] > at=20 > org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1524) [?:= ?] > at=20 > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLeve= lImpl.java:338)=20 > [?:?] > at java.lang.Thread.run(Thread.java:745) [?:?] > 2016-12-05T18:23:57,844 | INFO | CM Configuration Updater=20 > (ManagedService Update: pid=3D[org.apache.cxf.osgi]) |=20 > TldScanner | 189 - org.ops4j.pax.web.pax-web-jsp -= =20 > 4.4.0 | found TLD bundle://189.0:0/META-INF/c.tld > 2016-12-05T18:23:57,841 | ERROR | FelixDispatchQueue |=20 > all | 184 - org.objectweb.asm.all - 5.0.2 |= =20 > FrameworkEvent ERROR - org.objectweb.asm.all > java.lang.IllegalStateException: Bundle in unexpected state. > at=20 > org.apache.felix.framework.Felix.acquireBundleLock(Felix.java:5272) [?:?] > at=20 > org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1524) [?:= ?] > at=20 > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLeve= lImpl.java:338)=20 > [?:?] > at java.lang.Thread.run(Thread.java:745) [?:?] -- This message was sent by Atlassian JIRA (v6.4.14#64029)