Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

5 votes

Comments

I am facing the same problem. Didn't find a solution yet.


Liora 

Hi, same problem here. Using RTC 4.0.0.1 (waiting for upgrade to 4.0.1) with Java 1.7.0_05


I used to have a NullPointerException with RTC 3.0.1 using Java 7, since RTC 3 did not support Java 7 (see Service request number 78048 211 788). So we waited for the upgrade to RTC 4 to start using the RTC ant targets from the build. And now the NullPointerException is changed in an IllegalStateException...

Any idea if this problem is solved with RTC 4.0.1?

1 vote

Did you try Java 6?  (See my answer above)

 
As for your question, I am pretty sure I tried launching 4.0.1 and it worked fine with Java 7.  But where I work, we will not be upgrading our RTC servers for a while, and the 4.0.1 client requires a 4.0.1 server...

 I see this same error:


java.lang.IllegalStateException: Found two dtoEvolution elements with the same c
omponentVersion value in bundle com.ibm.team.apt.common.

With RTC 4.0.1 when starting up Eclipse w/ the RTC 4.0.1 Plugin installed and using Java 7 build 21 (and previous Java 7 builds).

I need Java 7 support since I am working with the JavaFX features of Java 7. This error seems to have something to do with causing my Eclipse 4.2 and 4.2.2 launches to sometimes take 5+ minutes as it is the only exception that is thrown while starting up.

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

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.

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.

did the system java change from the two executions of eclipse?  this is what happened to me, and some of my apps..

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...

showing 5 of 9 show 4 more comments


2 answers

Permanent link
I get the same error when I run Eclipse + RTC 4.0.0.1 on a Red Hat Enterprise Linux 6.3 system, which defaults to Java 7 (1.7.0).

The error goes away if I force Eclipse to use Java 6.  You can do this on the command line:
/opt/IBM/TeamConcert/eclipse -vm /usr/lib/jvm/jre-1.6.0/bin/java
...or you can add the same options to your eclipse.ini file.

For other ways to set the JVM, see the "Find the JVM" section of the Eclipse FAQ.

4 votes

Comments

It worked.  Thanks Patrick. 

I faced the same error. Earlier using jdk 7 to compile. now referred java 6. Issues resolved.


Permanent link
I have run my tools from the Plain Java Client Libraries for RTC 4.0 many many times. I usually use them included in the build path as user library in an Eclipse Java Project. I have never seen anything like this. 

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.

0 votes

Comments

Ralph, 


It shows when the build done through the command line.
I have an ant file which I use both in eclipse and in the command line. No error when using the same ant file from the eclipse. 
BTW, the application runs and completes its execution. 

Liora

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 28 '12, 8:30 a.m.

Question was seen: 8,500 times

Last updated: Feb 25 '14, 9:34 a.m.

Confirmation Cancel Confirm