Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5435

BundleException when installing a bundle by API when the FeatureService install a feature

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3, 4.2.0.M1
    • Component/s: None
    • Labels:
      None

      Description

      If a bundle install another bundle using his Bundlecontext, when the FeatureService resolve a features, then a BundleException can be thrown by the osgi framework.

      FeaturesServiceImpl, in the method 'resolveBundles' registers a ResolverHookFactory and unregisters this factory at this end. However, if another bundle X is resolved during the execution of this methods (using a BundleContext), then this ResolverHookFactory will be used, and it can be unregistered during the resolution of X. The osgi spec says that the resolution of X should fail if a ResolverHookFactory is unregistered during the resolution.

      This can happens on a cold start when "fileinstall" install a bundle and the FeatureService installs the boot features.

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              j3rem1e J. Brébec
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: