It's all about the answers!

Ask a question

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


Shwetha G (266710) | asked May 31 '23, 7:03 a.m.
closed May 31 '23, 8:39 a.m. by David Honey (1.8k17)

 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.

The question has been closed for the following reason: "Duplicate Question" by davidhoney May 31 '23, 8:39 a.m.