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

OperationCanceledException on PlainText Login

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)

0 votes



One answer

Permanent link
Turns out userId was null, so a simple mistake by me.

Not a very useful exception though.

0 votes

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
× 11,085

Question asked: Sep 07 '10, 4:53 p.m.

Question was seen: 7,865 times

Last updated: Sep 07 '10, 4:53 p.m.

Confirmation Cancel Confirm