Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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)


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

Thanks in advance.

0 votes



One answer

Permanent link

 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/   

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,930
× 7,489
× 1,318

Question asked: May 31 '23, 7:03 a.m.

Question was seen: 871 times

Last updated: Jun 12 '23, 3:12 a.m.

Confirmation Cancel Confirm