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

Exception in standalone v2 client connecting to repository

This is RTC v2.x.

I am writing a standalone client, and it is failing during logon. This same code runs when executed from within Eclipse.

I am using the latest client JARs (for v2) and am building this into an executable JAR. Since this is working within Eclipse, is there another/replacement JAR that I need for running this standalone?

Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:412)
at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:366)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:91)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:110)
at
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
at com.ibm.team.repository.common.internal.querypath.AbstractQueryPathModel$Implementation.getItemType(AbstractQueryPathModel.java:190)
at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuery.java:92)
at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery(ContributorManager.java:57)
at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(ContributorManager.java:45)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 7 more

0 votes



4 answers

Permanent link
Hi Bob,

have you looked in the Plain Java Client Libraries/Plain Java API? There are some snippets that show how to connect to RTC. In general this works similar in Eclipse as well as in a plain java client but you would have to have the Plain Java API jars in the classpath.

0 votes


Permanent link
I can repro this using the Snippet1 sample. In Eclipse that snippet works. As a standalone app it fails.


Hi Bob,

have you looked in the Plain Java Client Libraries/Plain Java API? There are some snippets that show how to connect to RTC. In general this works similar in Eclipse as well as in a plain java client but you would have to have the Plain Java API jars in the classpath.

0 votes


Permanent link
RESOLVED
The client work if from a normal JAR file, but not if from an executable JAR file.


I can repro this using the Snippet1 sample. In Eclipse that snippet works. As a standalone app it fails.


Hi Bob,

have you looked in the Plain Java Client Libraries/Plain Java API? There are some snippets that show how to connect to RTC. In general this works similar in Eclipse as well as in a plain java client but you would have to have the Plain Java API jars in the classpath.

0 votes


Permanent link
RESOLVED
The client work if from a normal JAR file, but not if from an executable JAR file.


Thanks for the solution Bob.

0 votes

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
× 3,980

Question asked: Aug 12 '11, 6:24 a.m.

Question was seen: 1,623 times

Last updated: Aug 12 '11, 6:24 a.m.

Confirmation Cancel Confirm