Unable to run Java app for WI creation without eclipse :(
Hi
My code runs perfectly well when I run the code as stand alone java application using the eclipse (RTC client) but when I try to run outside it either keeps giving me ..
I created an executable jar file and executed using
java -jar <jar> <login>
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRep
ository.java:387)
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.team.workitem.ide.ui.RunSyncWorkItem.loginDestRepository(RunS
yncWorkItem.java:108)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.run(RunSyncWorkItem.java
:204)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.main(RunSyncWorkItem.jav
a:270)
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.AbstractQueryPathMo
del$Implementation.getItemType(AbstractQueryPathModel.java:190)
at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuer
y.java:92)
at com.ibm.team.repository.client.internal.ContributorManager.createAllC
ontributorsQuery(ContributorManager.java:57)
at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(C
ontributorManager.java:45)
... 7 more
OR ....
Team Repository Exception Caught ....
com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP
rror "RSA premaster secret error" accessing URL "https://9.126.40.29:9443/jazz/
ervice/com.ibm.team.repository.common.internal.IRepositoryRemoteService".
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpM
thod(ClientHttpUtil.java:186)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCa
celableHttpMethod(RemoteTeamService.java:561)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePos
(RemoteTeamService.java:531)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMe
hod(RemoteTeamService.java:471)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(Re
oteTeamService.java:201)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.in
oke(ServiceInvocationHandler.java:43)
at $Proxy0.describe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke
erviceCall(ServiceInterfaceProxy.java:149)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke
ServiceInterfaceProxy.java:84)
at $Proxy0.describe(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRep
sitory.java:1382)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRep
sitory.java:1)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRep
sitory.java:1169)
at com.ibm.team.repository.common.transport.CancelableCaller.call(Cance
ableCaller.java:79)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelabl
Service(TeamRepository.java:1162)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin
TeamRepository.java:1375)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRep
sitory.java:570)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.loginDestRepository(Run
yncWorkItem.java:110)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.run(RunSyncWorkItem.jav
:204)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.main(RunSyncWorkItem.ja
a:270)
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
at com.sun.net.ssl.internal.ssl.RSAClientKeyExchange.<init>(Unknown Sou
ce)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknow
Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Sourc
)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(U
known Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown So
rce)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown So
rce)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFa
tory.createSocket(SecureInterruptableSocketFactory.java:157)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFa
tory.createSocket(SecureInterruptableSocketFactory.java:317)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.jav
:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Htt
ConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Ht
pMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpM
thodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja
a:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja
a:324)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpM
thod(ClientHttpUtil.java:155)
... 23 more
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret Key
enerator not available
at javax.crypto.KeyGenerator.<init>(DashoA13*..)
at javax.crypto.KeyGenerator.getInstance(DashoA13*..)
at com.sun.net.ssl.internal.ssl.JsseJce.getKeyGenerator(Unknown Source)
... 41 more
My code runs perfectly well when I run the code as stand alone java application using the eclipse (RTC client) but when I try to run outside it either keeps giving me ..
I created an executable jar file and executed using
java -jar <jar> <login>
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRep
ository.java:387)
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.team.workitem.ide.ui.RunSyncWorkItem.loginDestRepository(RunS
yncWorkItem.java:108)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.run(RunSyncWorkItem.java
:204)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.main(RunSyncWorkItem.jav
a:270)
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.AbstractQueryPathMo
del$Implementation.getItemType(AbstractQueryPathModel.java:190)
at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuer
y.java:92)
at com.ibm.team.repository.client.internal.ContributorManager.createAllC
ontributorsQuery(ContributorManager.java:57)
at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(C
ontributorManager.java:45)
... 7 more
OR ....
Team Repository Exception Caught ....
com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP
rror "RSA premaster secret error" accessing URL "https://9.126.40.29:9443/jazz/
ervice/com.ibm.team.repository.common.internal.IRepositoryRemoteService".
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpM
thod(ClientHttpUtil.java:186)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCa
celableHttpMethod(RemoteTeamService.java:561)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePos
(RemoteTeamService.java:531)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMe
hod(RemoteTeamService.java:471)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(Re
oteTeamService.java:201)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.in
oke(ServiceInvocationHandler.java:43)
at $Proxy0.describe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke
erviceCall(ServiceInterfaceProxy.java:149)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke
ServiceInterfaceProxy.java:84)
at $Proxy0.describe(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRep
sitory.java:1382)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRep
sitory.java:1)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRep
sitory.java:1169)
at com.ibm.team.repository.common.transport.CancelableCaller.call(Cance
ableCaller.java:79)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelabl
Service(TeamRepository.java:1162)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin
TeamRepository.java:1375)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRep
sitory.java:570)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.loginDestRepository(Run
yncWorkItem.java:110)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.run(RunSyncWorkItem.jav
:204)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.main(RunSyncWorkItem.ja
a:270)
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
at com.sun.net.ssl.internal.ssl.RSAClientKeyExchange.<init>(Unknown Sou
ce)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknow
Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Sourc
)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(U
known Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown So
rce)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown So
rce)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFa
tory.createSocket(SecureInterruptableSocketFactory.java:157)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFa
tory.createSocket(SecureInterruptableSocketFactory.java:317)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.jav
:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Htt
ConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Ht
pMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpM
thodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja
a:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja
a:324)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpM
thod(ClientHttpUtil.java:155)
... 23 more
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret Key
enerator not available
at javax.crypto.KeyGenerator.<init>(DashoA13*..)
at javax.crypto.KeyGenerator.getInstance(DashoA13*..)
at com.sun.net.ssl.internal.ssl.JsseJce.getKeyGenerator(Unknown Source)
... 41 more
5 answers
Hi,
there is a simple but working approach... export your Java Program with Export/Runnable JAR File with the option "Package required libraries into generated JAR".
OK... the resulting JAR File is huge (> 20MB) but it works (especially when you call your Java Program from other Programs like Delphi)
Stef
there is a simple but working approach... export your Java Program with Export/Runnable JAR File with the option "Package required libraries into generated JAR".
OK... the resulting JAR File is huge (> 20MB) but it works (especially when you call your Java Program from other Programs like Delphi)
Stef
I created an executable jar file and executed using
java -jar<jar> <login
Caused by: java.lang.IllegalArgumentException: The type name
Contributor and the
namespace URI com.ibm.team.repository do not resolve to an
IItemType.
This is a symptom of not having all required jar files on the classpath.
Please take a look at the readme.txt that accompanies the examples that
come with the plain java libraries:
java -Djava.ext.dirs=<location>:<plain> ...
--
Regards,
Patrick
Jazz Work Item Team
Hi Patrick ,
I followed the same instructions and even downloaded the latest jar file for JavaPlainClient-2002iFix.zip , but still I get the following exception
java -Djava.ext.dirs=.\ com.ibm.team.workitem.ide.ui.RunSyncWorkItem <Options>
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.repository.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.repository that is not unique.
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.repository.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.links that is not unique.
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.workitem.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.workitem that is not unique.
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.workitem.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.workitem.query that is not unique.
Team Repository Exception Caught ....
com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "RSA premaster secret error" accessing URL "https://9.126.40.29:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService".
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:186)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:561)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:531)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:471)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:201)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
at $Proxy0.describe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:149)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:84)
at $Proxy0.describe(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1382)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1169)
at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1162)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1375)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:570)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.loginDestRepository(RunSyncWorkItem.java:110)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.run(RunSyncWorkItem.java:204)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.main(RunSyncWorkItem.java:270)
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
at com.sun.net.ssl.internal.ssl.RSAClientKeyExchange.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFactory.createSocket(SecureInterruptableSocketFactory.java:157)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFactory.createSocket(SecureInterruptableSocketFactory.java:317)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:155)
... 23 more
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not available
at javax.crypto.KeyGenerator.<init>(DashoA13*..)
at javax.crypto.KeyGenerator.getInstance(DashoA13*..)
at com.sun.net.ssl.internal.ssl.JsseJce.getKeyGenerator(Unknown Source)
... 41 more
This is a symptom of not having all required jar files on the classpath.
Please take a look at the readme.txt that accompanies the examples that
come with the plain java libraries:
java -Djava.ext.dirs=<location>:<plain> ...
--
Regards,
Patrick
Jazz Work Item Team
I followed the same instructions and even downloaded the latest jar file for JavaPlainClient-2002iFix.zip , but still I get the following exception
java -Djava.ext.dirs=.\ com.ibm.team.workitem.ide.ui.RunSyncWorkItem <Options>
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.repository.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.repository that is not unique.
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.repository.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.links that is not unique.
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.workitem.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.workitem that is not unique.
Mar 24, 2010 11:32:52 AM com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.workitem.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.workitem.query that is not unique.
Team Repository Exception Caught ....
com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "RSA premaster secret error" accessing URL "https://9.126.40.29:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService".
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:186)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:561)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:531)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:471)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:201)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
at $Proxy0.describe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:149)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:84)
at $Proxy0.describe(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1382)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1169)
at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1162)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1375)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:570)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.loginDestRepository(RunSyncWorkItem.java:110)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.run(RunSyncWorkItem.java:204)
at com.ibm.team.workitem.ide.ui.RunSyncWorkItem.main(RunSyncWorkItem.java:270)
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
at com.sun.net.ssl.internal.ssl.RSAClientKeyExchange.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFactory.createSocket(SecureInterruptableSocketFactory.java:157)
at com.ibm.team.repository.transport.client.SecureInterruptableSocketFactory.createSocket(SecureInterruptableSocketFactory.java:317)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:155)
... 23 more
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not available
at javax.crypto.KeyGenerator.<init>(DashoA13*..)
at javax.crypto.KeyGenerator.getInstance(DashoA13*..)
at com.sun.net.ssl.internal.ssl.JsseJce.getKeyGenerator(Unknown Source)
... 41 more
I created an executable jar file and executed using
java -jar<jar> <login
Caused by: java.lang.IllegalArgumentException: The type name
Contributor and the
namespace URI com.ibm.team.repository do not resolve to an
IItemType.
This is a symptom of not having all required jar files on the classpath.
Please take a look at the readme.txt that accompanies the examples that
come with the plain java libraries:
java -Djava.ext.dirs=<location>:<plain> ...
--
Regards,
Patrick
Jazz Work Item Team
I'm also seeing exactly the same problem. My app runs fine within eclipse with all the RTC build kit jars on the classpath.
Is there a graph showing the dependencies between the build kit jars? I'm looking for something similar to the dependency diagrams generated by maven.
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
Is there a graph showing the dependencies between the build kit jars? I'm looking for something similar to the dependency diagrams generated by maven.
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.