karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Graf (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4578) Fileinstaller does not install bundle to root region
Date Sat, 18 Jun 2016 17:28:05 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338060#comment-15338060

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 installation). The namespace handler bundle does
not get resolved because of missing requirement osgi.wiring.package; (&(osgi.wiring.package=org.apache.aries.blueprint)(version>=1.5.0)(!(version>=2.0.0))).
I did some debugging and recognized that the bundle is not installed in the root region and
therefor does not see the resolved blueprint core bundle. Further investigation shows 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 the framework start-level goes immediately to 100. I think that there
is no synchronization while installing the eclipse region hook which puts the already installed
bundles into root region. If I stop (debug breakpoint) the activation 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 think 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é
>            Priority: Critical
> The file installer is starting to work in parallel to the activation of org.apache.karaf.features.core
which does the region hook initialization. This causes that bundles are installed to no region
causing them not to get sucessfully resolved. Might also be the cause of KARAF-4498.

This message was sent by Atlassian JIRA

View raw message