Invalid Credentials error even when the credentials are valid
Hello Team,
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Nov 21 '23, 11:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation shows example code that has always worked for me.
It is unclear why the login should sometimes not work. Maybe there is some kind of connection issue from the EWM server to LDAP or the license server.
Divya _ selected this answer as the correct answer
Comments 1
The important part here is:
teamRepository.registerLoginHandler(new LoginHandler(userId, password));
teamRepository.login(null);
You would also likely want to surround the login with a tray/catch for TeamRepositoryException, if you want to retry. The call itself tries three times. One other thing I have seen is: Do not package everything in one JAR. have your own JAR and keep the Plain Java Client Libraries and other JAR's you use in folders in the classpath. |
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.