• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • DSO:L1
  • asingh
  • Reporter: teck
  • March 16, 2009
  • 0
  • Watchers: 1
  • April 10, 2009
  • March 23, 2009

Attachments

Description

  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 )

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.(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.(BundleImpl.java:245) at org.knopflerfish.framework.Bundles.install0(Bundles.java:143) ... 10 more

Comments

Walter Harley 2009-03-20

Same breakage is affecting tim-hibernate tests, when run against locally built 3.0 TC. Tests fail with this output in client log:

2009-03-20 12:08:45,070 [main] INFO com.tc.bundles.Resolver - Resolved TIM org.terracotta.modules:tim-tomcat-6.0:1.0.0-SNAPSHOT from /Users/wharley/.m2/repository/org/terracotta/modules/tim-tomcat-6.0/1.0.0-SNAPSHOT/tim-tomcat-6.0-1.0.0-SNAPSHOT.jar 2009-03-20 12:08:45,169 [main] INFO com.tc.bundles.Resolver - Resolved TIM org.terracotta.modules:tim-hibernate-3.2.5:1.3.0-SNAPSHOT from /Users/wharley/.m2/repository/org/terracotta/modules/tim-hibernate-3.2.5/1.3.0-SNAPSHOT/tim-hibernate-3.2.5-1.3.0-SNAPSHOT.jar 2009-03-20 12:08:45,191 [main] INFO com.tc.bundles.Resolver - Resolved TIM org.terracotta.modules:tim-ehcache-1.3:1.3.0-SNAPSHOT from /Users/wharley/.m2/repository/org/terracotta/modules/tim-ehcache-1.3/1.3.0-SNAPSHOT/tim-ehcache-1.3-1.3.0-SNAPSHOT.jar 2009-03-20 12:08:45,219 [main] ERROR com.terracottatech.dso.runtime - Unable to open the bundle at: ‘file:/Users/wharley/dev/forge/projects/trunk/tim-hibernate/tim-hibernate-3.2.5-system-tests/target/temp/ContainerHibernate325Test/sandbox/modules/org/terracotta/modules/tim-tomcat-6.0/1.0.0-SNAPSHOT/tim-tomcat-6.0-1.0.0-SNAPSHOT.jar’ 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-tomcat-6.0, 1.0.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) at com.tc.bundles.KnopflerfishOSGi.installBundles(KnopflerfishOSGi.java:62) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:169) at com.tc.object.bytecode.hook.impl.DSOContextImpl.(DSOContextImpl.java:114) at com.tc.object.bytecode.hook.impl.DSOContextImpl.createGlobalContext(DSOContextImpl.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHelper.java:641) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.initialize(ClassProcessorHelper.java:400) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:680) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at javax.management.remote.rmi.NoCallStackClassLoader.findClass(NoCallStackClassLoader.java:108) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at javax.management.remote.rmi.RMIConnector$1.run(RMIConnector.java:2050) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnector.(RMIConnector.java:2071) at javax.management.remote.rmi.RMIConnectorServer.objectToBind(RMIConnectorServer.java:728) at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:392) at sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:686) at sun.management.jmxremote.ConnectorBootstrap.initialize(ConnectorBootstrap.java:379) at sun.management.Agent.startAgent(Agent.java:127) at sun.management.Agent.startAgent(Agent.java:239) [etc...] Caused by: java.lang.IllegalArgumentException: Bundle with same symbolic name and version is already installed (org.terracotta.modules.tim-tomcat-6.0, 1.0.0.SNAPSHOT at org.knopflerfish.framework.BundleImpl.checkManifestHeaders(BundleImpl.java:1263) at org.knopflerfish.framework.BundleImpl.(BundleImpl.java:245) at org.knopflerfish.framework.Bundles.install0(Bundles.java:143) ... 29 more

Abhishek Singh 2009-03-23

Fix in rev-12276 fro 3.0 and rev-12277in trunk.

Abhishek Singh 2009-03-24

Added test - testModuleInMultipleRepo() in ModulesLoaderTest Rev-12292 for trunk Rev-12293 for tc-3.0 branch

nadeem ghani 2009-03-30

fixed in rev12376

bin/make-boot-jar.sh -f ~/Desktop/CDV-1206-tc-config.xml 2009-03-30 13:24:29,074 INFO - Terracotta Enterprise 3.0.0-nightly, as of 20090330-080314 (Revision 3808-12376 by cruise@su10mo5 from 3.0) 2009-03-30 13:24:29,601 INFO - Configuration loaded from the file at ‘/Users/nghani/Desktop/CDV-1206-tc-config.xml’.