[ 
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:     (was: 3.0.3)
                       (was: 4.0.0.M3)

> 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é
>
> 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)

Reply via email to