Error using RTC 4.0 jar files
Hi All,
We are trying to run RTC Java code using RTC Plain Java 4.0 jars files.
We are getting below 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:205)
at com.ibm.team.repository.common.internal.util.ModelElementDescriptor$EvolutionDescriptorComponentVersionComparator.compare(ModelElementDescriptor.java:1)
at java.util.TreeMap.compare(Unknown Source)
at java.util.TreeMap.put(Unknown Source)
at java.util.TreeSet.add(Unknown Source)
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.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:318)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
at com.ibm.team.repository.common.internal.util.ComponentRegistry.<init>(ComponentRegistry.java:75)
at com.ibm.team.repository.common.internal.util.ComponentRegistry.<clinit>(ComponentRegistry.java:47)
at com.ibm.team.repository.common.LogFactory.getLog(LogFactory.java:71)
at com.ibm.team.repository.client.internal.TeamRepositoryService.<clinit>(TeamRepositoryService.java:71)
at com.ibm.team.repository.client.TeamPlatform.getTeamRepositoryService(TeamPlatform.java:126)
Please let me know is there any problem with RTC 4.0 jar files ??
Thanks
Monali
2 answers
/opt/IBM/TeamConcert/eclipse -vm /usr/lib/jvm/jre-1.6.0/bin/java
I would suggest to check if your build path contains more than one version. I just ran the snippets from the snippet folder in the plain java client libraries (see Readme file in said folder) and all was well.
Comments
Liora Milbaum
Dec 21 '12, 9:03 a.m.I am facing the same problem. Didn't find a solution yet.
Sjors van der Gouw
Feb 25 '14, 9:31 a.m.Hi, same problem here. Using RTC 4.0.0.1 (waiting for upgrade to 4.0.1) with Java 1.7.0_05
1 vote
Patrick LoPresti
Jan 21 '13, 11:05 a.m.Did you try Java 6? (See my answer above)
Michael Prentice
Apr 23 '13, 3:37 p.m.I see this same error:
Denis Aristov
Feb 25 '14, 9:33 a.m.Sorry, it is not an answer but I didn't find out how to comment...
In my case this error began to occur after an unsuccessful closing of Eclipse. After that Eclipse didn't start. After I switched to another workspace, it started well. So it seems that java version has nothing to do with it.
I always started eclipse with:
..\eclipse.exe -vm "C:\Program Files\Java\jdk1.7.0_21\bin" -data C:\workspace
sam detweiler
Feb 25 '14, 7:18 a.m.ava.lang.IllegalStateException: Found two dtoEvolution elements with the same componentVersion value in bundle com.ibm.team.scm.common.
this is a known error using java 7 with the older libraries.
Denis Aristov
Feb 25 '14, 7:30 a.m.Like I said everything worked before something went wrong by closing of Eclipse. Besides I see in the log file not only:
java.lang.IllegalStateException: Found two dtoEvolution elements with the same componentVersion value in bundle com.ibm.team.scm.common.
but also
java.lang.IllegalStateException: Found two dtoEvolution elements with the same componentVersion value in bundle com.ibm.team.apt.common.
So I would say something broke in the workspace. It would be great to know which files to add/remove/edit to restore this. My workspace is to huge and I don't want to create it from scratch.
sam detweiler
Feb 25 '14, 7:48 a.m.did the system java change from the two executions of eclipse? this is what happened to me, and some of my apps..
Denis Aristov
Feb 25 '14, 7:59 a.m.Again...
1) I always started Eclipse with the command
..\eclipse.exe -vm "C:\Program Files\Java\jdk1.7.0_21\bin" -data C:\workspace1
2) One day I closed Eclipse but it took too long. An error dialog was displayed but I didn't pay attention to it and closed it and Eclipse (didn't kill it via task manager).
3) The command from the step 1) didn't work after that. Eclipse just didn't start.
4) I used the same command but with another workspace whose projects are also under RTC and Eclipse started.
That's why I think that something went wrong in the workspace.
Now I think about how to continue my development in the first workspace. There is a lot of data. Not sure what is the quickest and easiest way to do it...