It's all about the answers!

Ask a question

Exception: Platform hasn't been started yet

EclipseTalk . (32735859) | asked Sep 08 '09, 11:49 a.m.
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

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

One answer

permanent link
EclipseTalk . (32735859) | answered Sep 08 '09, 12:45 p.m.
I solved it by adding the line



Your answer

Register or to post your answer.