It's all about the answers!

Ask a question

TeamServiceException ArrayStoreException in DefaultCookieSpecProvider RTC 6.0.1


Eric Nelson (1515) | asked Jun 08 '16, 9:06 p.m.
I'm running into exception that I'm having a hard time debugging.  I'm attempting to connect to an RTC 6.0.1 server using the 6.0.1 plain java api.  Any ideas on how to debug this would be much appreciated.

Exception in thread "main" com.ibm.team.repository.common.transport.TeamServiceException
    at com.ibm.team.repository.transport.client.RestClientConnectionBase.executeMethod(RestClientConnectionBase.java:395)
    at com.ibm.team.repository.transport.client.RestClientConnectionBase.doMethod(RestClientConnectionBase.java:211)
    at com.ibm.team.repository.transport.client.RestClientConnectionBase.doGet(RestClientConnectionBase.java:144)
    at com.ibm.team.repository.transport.client.TeamRawRestServiceClient$RawRestClientConnection.doGet(TeamRawRestServiceClient.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    at java.lang.reflect.Method.invoke(Method.java:620)
    at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:254)
    at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:110)
    at com.ibm.team.repository.client.internal.RawRestServiceClientProxy$RestClientConnectionProxy.invoke(RawRestServiceClientProxy.java:121)
    at com.sun.proxy.$Proxy9.doGet(Unknown Source)
    at com.ibm.team.repository.client.internal.TeamRepository.fetchClientVersionJSONObject(TeamRepository.java:1701)
    at com.ibm.team.repository.client.internal.TeamRepository.access$0(TeamRepository.java:1698)
    at com.ibm.team.repository.client.internal.TeamRepository$5.run(TeamRepository.java:1769)
    at com.ibm.team.repository.client.internal.TeamRepository$5.run(TeamRepository.java:1)
    at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1327)
    at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
    at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1322)
    at com.ibm.team.repository.client.internal.TeamRepository.checkServerVersionMatches(TeamRepository.java:1772)
    at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1520)
    at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:653)
    at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:627)
    at com.ibm.watson.oncology.cartridge.RTCUtility.<init>(RTCUtility.java:49)
    at com.ibm.watson.oncology.cartridge.RTCUtility.main(RTCUtility.java:69)
Caused by: java.lang.ArrayStoreException
    at org.apache.http.impl.cookie.DefaultCookieSpecProvider.create(DefaultCookieSpecProvider.java:92)
    at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:152)
    at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:131)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:192)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at com.ibm.team.repository.transport.client.RemoteTeamServer.executePrimitiveRequest(RemoteTeamServer.java:1870)
    at com.ibm.team.repository.transport.client.RemoteTeamServer.executeWithAuthHandling(RemoteTeamServer.java:1544)
    at com.ibm.team.repository.transport.client.RemoteTeamServer.executeMethod(RemoteTeamServer.java:1170)
    at com.ibm.team.repository.transport.client.RemoteTeamServer.executeMethod(RemoteTeamServer.java:1119)
    at com.ibm.team.repository.transport.client.RestClientConnectionBase.executeMethod(RestClientConnectionBase.java:375)
    ... 24 more

Accepted answer


permanent link
Ralph Schoon (63.3k33646) | answered Jun 09 '16, 4:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 09 '16, 4:07 a.m.
Eric, I have successfully run plain Java Client Library applications (e.g. the Extension Workshop Workshop Setup).
I make sure to
  1. Use the Java SDK shipped with RTC (client or server)
  2. Use the Plain Java Client Libraries for that version

I usually also run out of the Eclipse workspace with the SDK set up which provides eaxactly this set up plus debugging.

So it should run.I have not seen the issue you have, but I have seen people reporting issues when using Java 8. Another area where there have been frequent changes are in the SSL libraries and how the tools behave if there are issues. So you could check if you see something if you use a normal Eclipse or Web client.

My setup is explained here:

https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/

Eric Nelson selected this answer as the correct answer

Comments
Eric Nelson commented Jun 09 '16, 5:11 p.m.

Your answer made me think about the fact that I might still have some classpath order problems in my environment.  It turns out that I did and now it works after fixing that up.
Thanks for your inspiration! :)

Your answer


Register or 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.