It's all about the answers!

Ask a question

Invalid username or password with plain java client API


Jérémy Friant (10711) | asked Nov 04 '14, 9:20 a.m.
 Hi,

I developed an application in which I need to connect to the RTC. I tested the connection with a server install in localhost, no problem, I can connect me and see my project Areas. 

Now I try to connect to the real server (not local) and I get the following error (AuthenticationException) CRJAZ20124I Ivalid username or password. 

The error comes from (TeamRepository.class) : 

internalLogin (new SubProgressMonitor (monitor, IprogressMonitor.UNKNOWN)); 
monitor.worked (1); 

In my code I get well IteamRepository element from the repository URI (so there is an interaction with the server). 

The code to authenticate me was recovered on the page https://jazz.net/library/article/1229 

If you can help me 

Regards

Jérémy

One answer



permanent link
sam detweiler (12.5k6195201) | answered Nov 04 '14, 9:58 a.m.
edited Nov 04 '14, 1:12 p.m.
what userid and password do you use to connect to the production server?

the only time any of my plain java api code gets that error, I made a mistake with the userid or password

the accepted answer here has a utility of mine that dumps the contents of workitems returned for a saved query
https://jazz.net/forum/questions/94776/assertionfailedexception-problem-with-getting-the-values-of-attributes

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.