karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Diebolt (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-3475) No refresh of bundles during feature install
Date Sat, 24 Jan 2015 23:36:34 GMT
Frank Diebolt created KARAF-3475:

             Summary: 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


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.


This message was sent by Atlassian JIRA

View raw message