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

[closed] 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

1

0 votes


The question has been closed for the following reason: "The question is answered, right answer was accepted" by rschoon Mar 01 '18, 2:55 a.m.

Accepted answer

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.
Ralph Schoon selected this answer as the correct answer

0 votes


6 other 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
 Hi Bob,
I am facing same problem, could you please explain this process in detail?
Thank You

0 votes


Permanent link

Is there any solution for this issue?

0 votes


Permanent link

Is there any solution for this issue? I am facing same problem.

0 votes

Comments

Are you sure? That was a problem posted almost 7 years ago!

And also there an accepted answer, but probably tldr.

As a side note, I have seen executable JARs with the plain java client libraries in newer versions.

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
× 10,938

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

Question was seen: 9,401 times

Last updated: Mar 02 '18, 12:29 a.m.

Confirmation Cancel Confirm