java.lang.IllegalStateException while connecting to RTC
Hello,
i was facing the error 2020-11-19 12:58:07 SEVERE Initializing of RTC failed -java.lang.IllegalStateException: Already started from a different context. Current context = plain java
at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.start(InternalTeamPlatform.java:90) at com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:50)
while connecting to RTC : BElow is the code snippet used to connect to RTC
*/
public RTCConnect(String repositoryURI,String userId,String password) throws TeamRepositoryException,Exception { try{ TeamPlatform.startup(); teamRepository = TeamPlatform.getTeamRepositoryService().getTeamRepository(repositoryURI); teamRepository.registerLoginHandler(new RTCLoginHandler(userId,password)); teamRepository.login(null); int a = teamRepository.getConnectionTimeout(); } catch (Exception ex){ throw ex; } }
info: Running this as an eclipsec application
|
Be the first one to answer this question!
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.