org.osgi.framework.BundleException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 1. Download a 3.0 kit 2. Run tim-get.sh install tim-concurrent-collections (which should intall in kit "modules" dir) 3. Build tim-concurrent-collections and install to local maven repo 4. Try to build a boot jar with the attached config (which includes a <repository>) It seems to try to load all tim-concurrent-collections in can find, which in this case will be one too many. Why doesn't it stop when it find the first one? What should the preferred repository and order be? teck@piggy:~/tmp/terracotta-3.0.0-nightly-rev12167/bin$ ./make-boot-jar.sh 2009-03-16 16:47:51,240 INFO - Terracotta 3.0.0-nightly, as of 20090316-150356 (Revision 12167 by cruise@su10mo5 from 3.0) 2009-03-16 16:47:51,904 INFO - Configuration loaded from the file at '/home/teck/tmp/terracotta-3.0.0-nightly-rev12167/bin/tc-config.xml'. 2009-03-16 16:47:52,603 FATAL - BootJarTool: Unable to open the bundle at: 'file:/home/teck/.m2/repository/org/terracotta/modules/tim-concurrent-collections/1.1.0-SNAPSHOT/tim-concurrent-collections-1.1.0-SNAPSHOT.jar' 2009-03-16 16:47:52,603 FATAL - Exception thrown org.osgi.framework.BundleException: Unable to open the bundle at: 'file:/home/teck/.m2/repository/org/terracotta/modules/tim-concurrent-collections/1.1.0-SNAPSHOT/tim-concurrent-collections-1.1.0-SNAPSHOT.jar' at com.tc.bundles.AbstractEmbeddedOSGiRuntime.exception(AbstractEmbeddedOSGiRuntime.java:93) at com.tc.bundles.KnopflerfishOSGi.installBundle(KnopflerfishOSGi.java:200) at com.tc.bundles.KnopflerfishOSGi.installBundles(KnopflerfishOSGi.java:62) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:169) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:103) at com.tc.object.tools.BootJarTool.loadModules(BootJarTool.java:259) at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:243) at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2653) Caused by: org.osgi.framework.BundleException: Failed to install bundle: java.lang.IllegalArgumentException: Bundle with same symbolic name and version is already installed (org.terracotta.modules.tim-concurrent-collections, 1.1.0.SNAPSHOT at org.knopflerfish.framework.Bundles.install0(Bundles.java:163) at org.knopflerfish.framework.PermissionOps.callInstall0(PermissionOps.java:249) at org.knopflerfish.framework.Bundles.install(Bundles.java:93) at org.knopflerfish.framework.Framework.installBundle(Framework.java:488) at com.tc.bundles.KnopflerfishOSGi.installBundle(KnopflerfishOSGi.java:186) ... 6 more Caused by: java.lang.IllegalArgumentException: Bundle with same symbolic name and version is already installed (org.terracotta.modules.tim-concurrent-collections, 1.1.0.SNAPSHOT at org.knopflerfish.framework.BundleImpl.checkManifestHeaders(BundleImpl.java:1263) at org.knopflerfish.framework.BundleImpl.<init>(BundleImpl.java:245) at org.knopflerfish.framework.Bundles.install0(Bundles.java:143) ... 10 more
    via by Tim Eck,
  • Terracotta Project Issue Tracker
    via by Unknown author,
  • 1. Download a 3.0 kit 2. Run tim-get.sh install tim-concurrent-collections (which should intall in kit "modules" dir) 3. Build tim-concurrent-collections and install to local maven repo 4. Try to build a boot jar with the attached config (which includes a <repository>) It seems to try to load all tim-concurrent-collections in can find, which in this case will be one too many. Why doesn't it stop when it find the first one? What should the preferred repository and order be? teck@piggy:~/tmp/terracotta-3.0.0-nightly-rev12167/bin$ ./make-boot-jar.sh 2009-03-16 16:47:51,240 INFO - Terracotta 3.0.0-nightly, as of 20090316-150356 (Revision 12167 by cruise@su10mo5 from 3.0) 2009-03-16 16:47:51,904 INFO - Configuration loaded from the file at '/home/teck/tmp/terracotta-3.0.0-nightly-rev12167/bin/tc-config.xml'. 2009-03-16 16:47:52,603 FATAL - BootJarTool: Unable to open the bundle at: 'file:/home/teck/.m2/repository/org/terracotta/modules/tim-concurrent-collections/1.1.0-SNAPSHOT/tim-concurrent-collections-1.1.0-SNAPSHOT.jar' 2009-03-16 16:47:52,603 FATAL - Exception thrown org.osgi.framework.BundleException: Unable to open the bundle at: 'file:/home/teck/.m2/repository/org/terracotta/modules/tim-concurrent-collections/1.1.0-SNAPSHOT/tim-concurrent-collections-1.1.0-SNAPSHOT.jar' at com.tc.bundles.AbstractEmbeddedOSGiRuntime.exception(AbstractEmbeddedOSGiRuntime.java:93) at com.tc.bundles.KnopflerfishOSGi.installBundle(KnopflerfishOSGi.java:200) at com.tc.bundles.KnopflerfishOSGi.installBundles(KnopflerfishOSGi.java:62) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:169) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:103) at com.tc.object.tools.BootJarTool.loadModules(BootJarTool.java:259) at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:243) at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2653) Caused by: org.osgi.framework.BundleException: Failed to install bundle: java.lang.IllegalArgumentException: Bundle with same symbolic name and version is already installed (org.terracotta.modules.tim-concurrent-collections, 1.1.0.SNAPSHOT at org.knopflerfish.framework.Bundles.install0(Bundles.java:163) at org.knopflerfish.framework.PermissionOps.callInstall0(PermissionOps.java:249) at org.knopflerfish.framework.Bundles.install(Bundles.java:93) at org.knopflerfish.framework.Framework.installBundle(Framework.java:488) at com.tc.bundles.KnopflerfishOSGi.installBundle(KnopflerfishOSGi.java:186) ... 6 more Caused by: java.lang.IllegalArgumentException: Bundle with same symbolic name and version is already installed (org.terracotta.modules.tim-concurrent-collections, 1.1.0.SNAPSHOT at org.knopflerfish.framework.BundleImpl.checkManifestHeaders(BundleImpl.java:1263) at org.knopflerfish.framework.BundleImpl.<init>(BundleImpl.java:245) at org.knopflerfish.framework.Bundles.install0(Bundles.java:143) ... 10 more
    via by Tim Eck,
    • org.osgi.framework.BundleException: Unable to open the bundle at: 'file:/home/teck/.m2/repository/org/terracotta/modules/tim-concurrent-collections/1.1.0-SNAPSHOT/tim-concurrent-collections-1.1.0-SNAPSHOT.jar' at com.tc.bundles.AbstractEmbeddedOSGiRuntime.exception(AbstractEmbeddedOSGiRuntime.java:93) at com.tc.bundles.KnopflerfishOSGi.installBundle(KnopflerfishOSGi.java:200) at com.tc.bundles.KnopflerfishOSGi.installBundles(KnopflerfishOSGi.java:62) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:169) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:103) at com.tc.object.tools.BootJarTool.loadModules(BootJarTool.java:259) at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:243) at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2653) Caused by: org.osgi.framework.BundleException: Failed to install bundle: java.lang.IllegalArgumentException: Bundle with same symbolic name and version is already installed (org.terracotta.modules.tim-concurrent-collections, 1.1.0.SNAPSHOT at org.knopflerfish.framework.Bundles.install0(Bundles.java:163) at org.knopflerfish.framework.PermissionOps.callInstall0(PermissionOps.java:249) at org.knopflerfish.framework.Bundles.install(Bundles.java:93) at org.knopflerfish.framework.Framework.installBundle(Framework.java:488) at com.tc.bundles.KnopflerfishOSGi.installBundle(KnopflerfishOSGi.java:186) ... 6 more Caused by: java.lang.IllegalArgumentException: Bundle with same symbolic name and version is already installed (org.terracotta.modules.tim-concurrent-collections, 1.1.0.SNAPSHOT at org.knopflerfish.framework.BundleImpl.checkManifestHeaders(BundleImpl.java:1263) at org.knopflerfish.framework.BundleImpl.<init>(BundleImpl.java:245) at org.knopflerfish.framework.Bundles.install0(Bundles.java:143) ... 10 more
    No Bugmate found.