Error when connecting to an RTC Server
since yesterday everytime I try to connect to one of our RTC server with a Jenkins it throws me this exception:
FATAL: RTC : checkout failure: org.apache.http.impl.cookie.RFC2965VersionAttributeHandler com.ibm.team.repository.common.transport.TeamServiceException: org.apache.http.impl.cookie.RFC2965VersionAttributeHandler 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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.$Proxy94.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.bosch.jenkins.plugins.loadrulegenerator.LoadRuleGenExtension.getComponentLoadRules(LoadRuleGenExtension.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.ibm.team.build.internal.hjplugin.rtc.RtcExtensionProviderUtil.getComponentLoadRules(RtcExtensionProviderUtil.java:78) at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.load(RepositoryConnection.java:784) at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.load(RTCFacade.java:501) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:125) at com.ibm.team.build.internal.hjplugin.RTCLoadTask.invoke(RTCLoadTask.java:172) at com.ibm.team.build.internal.hjplugin.RTCLoadTask.invoke(RTCLoadTask.java:35) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1749) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.lang.ArrayStoreException: org.apache.http.impl.cookie.RFC2965VersionAttributeHandler 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:193) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) 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) ... 49 more FATAL: RTC : checkout failure: RTC : checkout failure: org.apache.http.impl.cookie.RFC2965VersionAttributeHandler hudson.AbortException: RTC : checkout failure: org.apache.http.impl.cookie.RFC2965VersionAttributeHandler at com.ibm.team.build.internal.hjplugin.RTCLoadTask.invoke(RTCLoadTask.java:219) at com.ibm.team.build.internal.hjplugin.RTCLoadTask.invoke(RTCLoadTask.java:35) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1749) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) ERROR: RTC : checkout failure: RTC : checkout failure: org.apache.http.impl.cookie.RFC2965VersionAttributeHandler Finished: FAILURE
One of my co-workers told me he heard of that problem and deleting the home folder and then reconfiguring the Jenkins should fix it. Alas, the problem still persists and I have no idea what I should do about it. Can some of you help me out?
=======================UPDATE=======================
This exception came up today once more. Does anyone have any more information about this issue? Google yet to yield any useful answers.
Cheers,
David
One answer
Thanks,
Sridevi
Comments
Sadly, my coworker who told me stumbled over that problem once is not here today but this is basically all the information he had about it:
"This is another thing from the RTC API. Apparently it creates a session with RTC and leaves some cookies behind, my guess. So, it is basically conflicting the resources that have been downloaded in another session."
Just in case it helps. But where do these resources get stored? I am using a local test-jenkins, so it would be no problem to delete some stuff, even if I have so re-configure some things.
Can you try to run this load rule generator in a standalone setup, like invoke it from a java.main class or from a junit test? I hope the load rule generator just reads some data from the RTC repository and doesn't write to it; so it should be safe to run it from a standalone setup.
Thanks,
Sridevi
Comments
Sridevi Sangaiah
JAZZ DEVELOPER Oct 28 '16, 2:21 a.m.Do you see any related exception in RTC server logs. You need to check both ccm.log and jts.log.
Thanks,
Sridevi
Sridevi Sangaiah
JAZZ DEVELOPER Oct 28 '16, 2:44 a.m.Please ignore my above comment. Missed to look at the entire stacktrace. This is clearly a client side issue.
Thanks,
Sridevi
Rafael Rezende
Apr 26 '17, 6:15 p.m.Just for the sake of traceability, this issue has been tracked by the following Work Item:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=415142