[closed] 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.
The question has been closed for the following reason: "Duplicate Question" by davidhoney May 31 '23, 8:39 a.m.