It's all about the answers!

Ask a question

OperationCanceledException on PlainText Login


Russell Kearn (1121) | asked Sep 07 '10, 4:53 p.m.
In the following code sample I am getting the following exception. I have read a ton on the different forums and I am missing something.

Can anyone help?

Thanks

String repositoryURI= "https://<server>:9443/jazz";

String userId= name.getName();
String password= String.valueOf(pass.getPassword());

TeamPlatform.startup();
TeamRepository.setAcceptAllCertificates(true);

IProgressMonitor monitor = new NullProgressMonitor();
ITeamRepository teamRepository= TeamPlatform.getTeamRepositoryService().getTeamRepository (repositoryURI);
teamRepository.registerLoginHandler(new LoginHandler(userId, password));
teamRepository.login(monitor);


org.eclipse.core.runtime.OperationCanceledException
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1355)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:570)
at RTC_API_Test.RTC_Editor.createWorkItem(RTC_Editor.java:125)

One answer



permanent link
Russell Kearn (1121) | answered Sep 09 '10, 8:57 p.m.
Turns out userId was null, so a simple mistake by me.

Not a very useful exception though.

Your answer


Register or 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.