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

Frank Diebolt updated KARAF-3475:
---------------------------------
           Description: 
Hi,

I successfully tested the fix below :

In the source file 
<karaf-sources>features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java

protected void refreshPackages(Collection<Bundle> bundles) {
        final Object refreshLock = new Object();
-FrameworkWiring wiring = 
bundleContext.getBundle().adapt(FrameworkWiring.class);
+FrameworkWiring wiring = 
bundleContext.getBundle(0).adapt(FrameworkWiring.class);

Currently wiring is always null, FrameworkWiring can be obtained on bundle 0 
only.

BR
Frank

  was:
Hi,

In the source file 
<karaf-sources>features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java

protected void refreshPackages(Collection<Bundle> bundles) {
        final Object refreshLock = new Object();
-        FrameworkWiring wiring = 
bundleContext.getBundle().adapt(FrameworkWiring.class);
+        FrameworkWiring wiring = 
bundleContext.getBundle(0).adapt(FrameworkWiring.class);

Currently wiring is always null, FrameworkWiring can be obtained on bundle 0 
only.

BR
Frank

    Remaining Estimate: 5m
     Original Estimate: 5m

> No refresh of bundles during feature install
> --------------------------------------------
>
>                 Key: KARAF-3475
>                 URL: https://issues.apache.org/jira/browse/KARAF-3475
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 3.0.2
>            Reporter: Frank Diebolt
>             Fix For: 3.0.3
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Hi,
> I successfully tested the fix below :
> In the source file 
> <karaf-sources>features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java
> protected void refreshPackages(Collection<Bundle> bundles) {
>         final Object refreshLock = new Object();
> -FrameworkWiring wiring = 
> bundleContext.getBundle().adapt(FrameworkWiring.class);
> +FrameworkWiring wiring = 
> bundleContext.getBundle(0).adapt(FrameworkWiring.class);
> Currently wiring is always null, FrameworkWiring can be obtained on bundle 0 
> only.
> BR
> Frank



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

Reply via email to