karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-3371) FeatureService does not refresh bundles
Date Wed, 26 Nov 2014 01:28:12 GMT

     [ https://issues.apache.org/jira/browse/KARAF-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré updated KARAF-3371:
----------------------------------------
    Fix Version/s: 3.0.3
                   4.0.0

> FeatureService does not refresh bundles
> ---------------------------------------
>
>                 Key: KARAF-3371
>                 URL: https://issues.apache.org/jira/browse/KARAF-3371
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 3.0.2
>            Reporter: Dmitry Konstantinov
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.0, 3.0.3
>
>
> org.apache.karaf.features.internal.BundleManager#refreshPackages method:
> {code}
> FrameworkWiring wiring = bundleContext.getBundle().adapt(FrameworkWiring.class);
>         if (wiring != null) {
> {code}
> this code always returns null, because only the framework bundle can be adapted to FrameworkWiring
(http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/wiring/FrameworkWiring.html).
> How it can be fixed:
> {code}
>  bundleContext.getBundle(0).adapt(FrameworkWiring.class) 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message