It's all about the answers!

Ask a question

Team Repository is throwing exception while connecting through the RTC Plain Java API.


Shwetha G (266710) | asked May 31 '23, 7:03 a.m.

 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)


Please assist us on how to connect using the Team Repository.

Thanks in advance.

One answer



permanent link
Ralph Schoon (63.6k33646) | 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


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.