Team Repository is throwing exception while connecting through the RTC Plain Java API.
Hi Team,
We have a Plain Java API to connect to the RTC Team Repository.:
TeamPlatform.startup();
teamRepository = TeamPlatform.getTeamRepositoryService().getTeamRepository(repositoryURI);
teamRepository.registerLoginHandler(new RTCLoginHandler(userId,password));
teamRepository.login(null);
This is throwing exception:
Initializing of RTC failed -com.ibm.team.repository.common.transport.ServiceMethodInvocationError: java.lang.NoSuchMethodError: 'void org.apache.http.impl.cookie.BasicClientCookie.setCreationDate(java.util.Date)'
at com.ibm.team.repository.transport.client.RemoteTeamService.getAppropriateException(RemoteTeamService.java:738)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:572)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:202)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
Looks like setCreationDate is Deprecated: https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/org/apache/hc/client5/http/impl/cookie/BasicClientCookie.html
Please assist us on how to connect using the Team Repository.
Thanks in advance.
|
One answer
Ralph Schoon (63.6k●3●36●46)
| answered Jun 12 '23, 3:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER There is not enough information in the question that would allow answering the question. I would assume this might be an issue with a Java version or something in the environment.
The Plain Java Client Libraries have so far worked for me, including the code above. Please see https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and the Extensions Workshop mentioned in the post for how to set up and use the APIs. The extensions workshop Lab 1 helps setting up an environment for client/server SDK and the Plain Java Client Libraries. Also see: https://rsjazz.wordpress.com/2023/03/20/tls1-1-and-how-to-make-the-ewm-rtc-extensions-workshop-work/
|
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.