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

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




0 votes


Be the first one to answer this question!

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

Question asked: Nov 19 '20, 2:34 a.m.

Question was seen: 678 times

Last updated: Nov 19 '20, 2:34 a.m.

Confirmation Cancel Confirm