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

Exception: Platform hasn't been started yet

Hello,
I'm getting this exception when I connect to the repository

Platform hasn't been started yet
Caused by: java.lang.IllegalStateException: Platform hasn't been started yet
at com.ibm.team.repository.client.TeamPlatform.getTeamRepositoryService(TeamPlatform.java:122)

I'm using this line to get the repository.
ITeamRepository repository = TeamPlatform.getTeamRepositoryService().getTeamRepository(REPOSITORY_ADDRESS);

What does it mean the platform hasn't started? The Jazz server is up and running and I can connect to it. The same code works fine in a plain Java setting. Is there a timing issue somewhere?

Under which circumstances the InternalTeamPlatform is not started and gets this exception?

 public static final synchronized ITeamRepositoryService getTeamRepositoryService() {

if (!InternalTeamPlatform.getDefault().isStarted()) {
throw new IllegalStateException("Platform hasn't been started yet"); //$NON-NLS-1$
}
if (repositoryService == null) {
repositoryService = new TeamRepositoryService();
}
return repositoryService;
}

Thank you

0 votes



One answer

Permanent link
I solved it by adding the line

TeamPlatform.startup

Thanks

1 vote

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,943

Question asked: Sep 08 '09, 11:49 a.m.

Question was seen: 8,294 times

Last updated: Sep 08 '09, 11:49 a.m.

Confirmation Cancel Confirm