It's all about the answers!

Ask a question

Having problems running a RTC client outside eclipse


Steve Arnold (28131411) | asked Sep 12 '09, 4:20 p.m.
Hi

I have a RTC client which runs fine from inside eclipse.

I export it as a jar, and run it as follows

c:\jazz\jazzdev\jazz\server\jre\bin\java -Djava.ext.dirs=c:/jazz/jazzdev/jazz/server/jdk/jre/lib/ext;c:/jazz/jpjc -jar reqproConnectorClient_v2.jar

I then get the following error....
Exception in thread "main" java.lang.NullPointerException
at com.ibm.team.repository.transport.client.ValidatingX509TrustManager.i
nitializeBaseTrustManager(ValidatingX509TrustManager.java:56)
at com.ibm.team.repository.transport.client.ValidatingX509TrustManager.<init>(ValidatingX509TrustManager.java:99)
at com.ibm.team.repository.transport.client.ValidatingX509TrustManager.<init>(ValidatingX509TrustManager.java:79)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFac
tory.<init>(SecureInterruptableSocketFactory.java:136)
at com.ibm.team.repository.transport.client.RemoteTeamServer.ensureIniti
alized(RemoteTeamServer.java:192)
at com.ibm.team.repository.transport.client.RemoteTeamServer.setCredenti
als(RemoteTeamServer.java:408)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRep
ository.java:348)
at com.ibm.team.repository.client.internal.TeamRepositoryService.createS
haredTeamRepository(TeamRepositoryService.java:366)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeam
Repository(TeamRepositoryService.java:91)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeam
Repository(TeamRepositoryService.java:110)
at com.ibm.uk.genericconnector.RTCUtil.login(RTCUtil.java:130)
at com.ibm.uk.genericconnector.GenericConnector.startup(GenericConnector
.java:76)
at com.ibm.uk.reqproconnector.ReqProConnector.main(ReqProConnector.java:
61)

Any idea what I'm doing wrong ?

Any help much appreciated

Steve

One answer



permanent link
Remigiusz Dudek (21) | answered Nov 20 '09, 3:34 a.m.
I got exactly the same error, in my case the problem was with IBMJCE provider - it was not loaded. The only thing I had to do was to add lib/ext dir from my RTC VM to -Djava.ext.dirs.

Your answer


Register or to post your answer.