From issues-return-29946-apmail-karaf-issues-archive=karaf.apache.org@karaf.apache.org Sat Jun 18 17:28:08 2016 Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1CBBD1859D for ; Sat, 18 Jun 2016 17:28:08 +0000 (UTC) Received: (qmail 6885 invoked by uid 500); 18 Jun 2016 17:28:06 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 6596 invoked by uid 500); 18 Jun 2016 17:28:05 -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 6543 invoked by uid 99); 18 Jun 2016 17:28:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2016 17:28:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CB8F42C1F6B for ; Sat, 18 Jun 2016 17:28:05 +0000 (UTC) Date: Sat, 18 Jun 2016 17:28:05 +0000 (UTC) From: "Benjamin Graf (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4578) Fileinstaller does not install bundle to root region MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4578?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1533= 8060#comment-15338060 ]=20 Benjamin Graf commented on KARAF-4578: -------------------------------------- I do deploy a simple bundle with a little blueprint namespace handler. The = blueprint dependency is resolved via feature (standard SMX 7.0m2 installati= on). The namespace handler bundle does not get resolved because of missing = requirement osgi.wiring.package; (&(osgi.wiring.package=3Dorg.apache.aries.= blueprint)(version>=3D1.5.0)(!(version>=3D2.0.0))). I did some debugging an= d recognized that the bundle is not installed in the root region and theref= or does not see the resolved blueprint core bundle. Further investigation s= hows that org.apache.karaf.features.core does its activation in a separate = thread (karaf-util BaseActivator class architecture). Therefor the feature = deploy process and the file installer process are working parallel since th= e framework start-level goes immediately to 100. I think that there is no s= ynchronization while installing the eclipse region hook which puts the alre= ady installed bundles into root region. If I stop (debug breakpoint) the ac= tivation of org.apache.karaf.features.core and let it run after all bundles= have been installed by file installer everything is fine. That's why I thi= nk its a multi-thread race condition. > Fileinstaller does not install bundle to root region > ---------------------------------------------------- > > Key: KARAF-4578 > URL: https://issues.apache.org/jira/browse/KARAF-4578 > Project: Karaf > Issue Type: Bug > Components: karaf-core, karaf-feature > Affects Versions: 4.0.5 > Reporter: Benjamin Graf > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Critical > > The file installer is starting to work in parallel to the activation of o= rg.apache.karaf.features.core which does the region hook initialization. Th= is causes that bundles are installed to no region causing them not to get s= ucessfully resolved. Might also be the cause of KARAF-4498. -- This message was sent by Atlassian JIRA (v6.3.4#6332)