It's all about the answers!

Ask a question

Getting error while running jar file in linux while getting passed in my eclipse


arun sudarsanam (252) | asked Jun 22 '17, 6:46 a.m.


I have runnable jar file with all its associated jars and class in it.

While executing in eclipse it is getting passed.
But while running it in linux getting below error.
java -jar statusReporter.jar


 Exception in thread "main" java.lang.ExceptionInInitializerError
        at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:420)
        at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:526)
        at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:112)
        at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:131)
        at com.telstra.ideaaz.rtc.WorkitemsValidation.login(WorkitemsValidation.java:73)
        at com.telstra.ideaaz.rtc.StatusReporter.main(StatusReporter.java:65)
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:192)
        at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuery.java:93)
        at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery(ContributorManager.java:72)
        at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(ContributorManager.java:60)
        ... 6 more

Accepted answer


One other answer



permanent link
arun sudarsanam (252) | answered Jun 23 '17, 2:37 a.m.

  thanks for the above links. i have solved the above issue.
we have to run it as jar not as executable jar.


Now blocked with new error while login .
Exception in thread "main" com.ibm.team.repository.common.TeamRepositoryExceptio
n: CRJAZ0056I There is a version mismatch for the "com.ibm.team.repository" serv
ice.  The server version is "35" while the client version is "32".
        at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.validat
eServiceCall(ServiceInterfaceProxy.java:223)
        at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(
ServiceInterfaceProxy.java:87)
        at com.sun.proxy.$Proxy0.describe(Unknown Source)
        at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepo
sitory.java:1513)
        at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepo
sitory.java:1)
        at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepo
sitory.java:1287)
        at com.ibm.team.repository.common.transport.CancelableCaller.call(Cancel
ableCaller.java:79)
        at com.ibm.team.repository.client.internal.TeamRepository.callCancelable
Service(TeamRepository.java:1280)
        at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(
TeamRepository.java:1506)
        at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepo
sitory.java:641)

Your answer


Register or to post your answer.