It's all about the answers!

Ask a question

How do I fix java errors shown by running SCM command?


James Adams (537) | asked Nov 06 '13, 1:43 p.m.
 When running the SCM command for RTC, everything runs as expected but our command window is constantly covered with java errors. Below is a sample of the errors.

java.lang.IllegalStateException: Found two dtoEvolution elements with the same componentVersion value in bundle com.ibm.team.scm.common.
        at com.ibm.team.repository.common.internal.util.ModelElementDescriptor$EvolutionDescriptorComponentVersionComparator.compare(ModelElementDescriptor.java:205)
        at com.ibm.team.repository.common.internal.util.ModelElementDescriptor$EvolutionDescriptorComponentVersionComparator.compare(ModelElementDescriptor.java:1)
        at java.util.TreeMap.compare(TreeMap.java:1199)

.
.
.
.

I was told that going into the code and making the changes would fix the errors, but I don't have the source code because it came from IBM. Has anyone had this issue?? It's hard to follow feedback from our scripts when this blows up our screen and feeds it all away before we can analyze it.

Accepted answer


permanent link
sam detweiler (12.4k6172200) | answered Nov 06 '13, 1:47 p.m.
that is a known problem in pre-4.0.1 releases..  fixed later.

you might be able to hide it by redirecting stderr to nul

scm ...... 2>nul

defect https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=213302

supposedly fix delivered in 4.0.2 and later
James Adams selected this answer as the correct answer

Comments
James Adams commented Nov 06 '13, 4:53 p.m.

 That is what I suspected... We will be upgrading to 4.0.4 within a few weeks and I was expecting this to take care of itself then, but if there was a fix available now I was going to go ahead with the implementation. Thank you for your quick response!

One other answer



permanent link
Samuel Benjamin (611) | answered Nov 06 '14, 1:20 p.m.

Hello Sam,

Greetings and refreshing to see you are still feilding Jazz fires :).

We are trying to use the Maven Release Plugin to cut an automated product release release. After many issues to satisfy the requirememts of this plugin's integration with Jazz, we have been able to resolve the Release Prepare goal.

The build is now trying to do a Release Perform goal and is getting the same java error stack as reported in this post. I will provide it here for your perusal.

When I ran this manually from the command line, I saw that the execution went past the java error and I saw some scm processing messages. Please see them at the end of the java error stack below.

Please advise what is happening and what we can do to fix or work around this problem. Thanks much.

------------------------------------

[INFO] --- maven-release-plugin:2.5:prepare (default-cli) @ risk-viewer ---

[INFO] Verifying that there are no local modifications...

[INFO]   ignoring changes on: **/pom.xml.backup, **/release.properties, **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag

[INFO] Executing: /bin/sh -c cd /sandbox/jazz/buildsystem/buildengine/sandbox/_UBca8WUuEeSIJLflR2b2xw_N_bssdfgds.account@foo.com/bar_abcd && scm status

[INFO] Working directory: /sandbox/jazz/buildsystem/buildengine/sandbox/_UBca8WUuEeSIJLflR2b2xw_N_bssdfgds.account@foo.com/bar-abcd

 

>>>>> [ERROR] Error: java.lang.IllegalStateException: Found two dtoEvolution elements with the same componentVersion value in bundle com.ibm.team.scm.common.

      at com.ibm.team.repository.common.internal.util.ModelElementDescriptor$EvolutionDescriptorComponentVersionComparator.compare(ModelElementDescriptor.java:223)

      at com.ibm.team.repository.common.internal.util.ModelElementDescriptor$EvolutionDescriptorComponentVersionComparator.compare(ModelElementDescriptor.java:1)

      at java.util.TreeMap.compare(TreeMap.java:1188)

      at java.util.TreeMap.put(TreeMap.java:531)

      at java.util.TreeSet.add(TreeSet.java:255)

      at com.ibm.team.repository.common.internal.util.ModelElementDescriptor.processEvolutionElement(ModelElementDescriptor.java:70)

      at com.ibm.team.repository.common.internal.util.ModelElementDescriptor.processChild(ModelElementDescriptor.java:63)

      at com.ibm.team.repository.common.transport.AbstractElementDescriptor.processChildren(AbstractElementDescriptor.java:725)

      at com.ibm.team.repository.common.transport.AbstractElementDescriptor.<init>(AbstractElementDescriptor.java:60)

      at com.ibm.team.repository.common.internal.util.AbstractComponentChildElementDescriptor.<init>(AbstractComponentChildElementDescriptor.java:30)

      at com.ibm.team.repository.common.internal.util.ModelElementDescriptor.<init>(ModelElementDescriptor.java:47)

      at com.ibm.team.repository.common.internal.util.ComponentElementDescriptor.processChild(ComponentElementDescriptor.java:262)

      at com.ibm.team.repository.common.transport.AbstractElementDescriptor.processChildren(AbstractElementDescriptor.java:725)

      at com.ibm.team.repository.common.transport.AbstractElementDescriptor.<init>(AbstractElementDescriptor.java:60)

      at com.ibm.team.repository.common.internal.util.ComponentElementDescriptor.<init>(ComponentElementDescriptor.java:39)

      at com.ibm.team.repository.common.internal.util.ComponentRegistry.handleExtensionAdded(ComponentRegistry.java:859)

      at com.ibm.team.repository.common.internal.util.ComponentRegistry.handleExtensionAdded(ComponentRegistry.java:1)

      at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:205)

      at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:624)

      at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)

      at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1132)

      at com.ibm.team.repository.common.transport.internal.Activator.startExtensionReaders(Activator.java:103)

      at com.ibm.team.repository.common.transport.internal.Activator.start(Activator.java:71)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)

      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)

      at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)

      at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)

      at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)

      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

      at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)

      at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:466)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

      at com.ibm.team.filesystem.cli.core.internal.Application.<clinit>(Application.java:32)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

      at java.lang.Class.newInstance(Class.java:374)

      at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)

      at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)

      at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)

      at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)

      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)

      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)

      at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

      at org.eclipse.equinox.launcher.Main.main(Main.java:1384)


Workspace: (2253) "Duplicateofbar_abdc-vs1-release" <-> (2113) "FreeCS REL1 S>
  Component: (1976) "Abcd UI"
    Baseline: (2262) 409 "bar_abcd-0.0.16"
    Unresolved:
      a-- /bar_abcd/release.properties
    Outgoing:
      Change sets:
        (2266) *--@  "<No comment>" 06-Nov-2014 12:30 PM

-----------------------------

 

Regards,

   Sammy.


Comments
sam detweiler commented Nov 06 '14, 1:38 p.m. | edited Nov 06 '14, 1:44 p.m.

long time no talk to!..

this is a fake error because u are using Java 7, but the Jazz libraries were built with an older java.    

maven is just calling scm under the covers, and scm is a java app.

there are two solutions...

1. upgrade your rtc libs (scm etc) to 4.0.6 or above
2. downgrade your jdk  to java 6 for build

and one workaround, which may not work, redirect std err for your build to null.
as noted in my prior post here

and the 'ignore that error'

Your answer


Register or to post your answer.