Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1416

BundleException "bundle is already installed" when the Preferred-Provider subsystem header points to a bundle.

    XMLWordPrintableJSON

Details

    Description

      When using the Preferred-Provider header that specifies a bundle, an exception similar to the following is received:

      org.osgi.framework.BundleException: A bundle is already installed with the name "bundle.c.jar" and version "0.0.0"
      at org.eclipse.osgi.container.ModuleContainer.install(ModuleContainer.java:254)
      at org.eclipse.osgi.storage.Storage.install(Storage.java:513)
      at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)
      at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundle0(BundleIdBasedRegion.java:117)
      at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundleAtLocation(BundleIdBasedRegion.java:97)
      at org.apache.aries.subsystem.core.internal.BundleResourceInstaller.installBundle(BundleResourceInstaller.java:197)
      at org.apache.aries.subsystem.core.internal.BundleResourceInstaller.install(BundleResourceInstaller.java:182)
      at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.installAriesSubsystem(SubsystemResourceInstaller.java:98)
      at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.installSubsystemResource(SubsystemResourceInstaller.java:159)
      at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.installRawSubsystemResource(SubsystemResourceInstaller.java:130)
      at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.install(SubsystemResourceInstaller.java:38)
      at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.installAriesSubsystem(SubsystemResourceInstaller.java:113)
      at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.install(SubsystemResourceInstaller.java:36)
      at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:77)
      at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:30)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:646)
      at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:690)
      at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:278)
      at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:65)
      ...

      Attachments

        Issue Links

          Activity

            People

              jwross@us.ibm.com John Ross
              jwross@us.ibm.com John Ross
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: