It's all about the answers!

Ask a question

HTTP/1.1 401 Unauthorized - thrown while connecting to RRC through http client


Anjaly Bastian (1168) | asked Oct 01 '13, 4:01 a.m.
"HTTP/1.1 401 Unauthorized "- thrown while connecting to RRC through http client in my java code.
Is there any solution for the same.

One answer



permanent link
Gabriel Ruelas (1.1k13) | answered Oct 01 '13, 10:03 a.m.
Hi, PLS check the Open Services for Lifecycle Collaboration Workshop for Java sample code ( example04.java ) in how to authenticate with the RM Server.

Comments
Anjaly Bastian commented Oct 01 '13, 10:32 a.m. | edited Oct 01 '13, 10:46 a.m.

I use a Reportable Rest URL as shown below:

https://host:9443/rm/publish/resources?projectName=JKE%20Banking%20%28Requirements%20Management%29

My intension is to read all requirements belonging to JKE Banking using rest URL.
But this is giving me an HTTP/1.1 401 error with the following error message

Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://host:9443/jts/oauth-authorize}

Note that I am doing this programmatically by using a java based HTTP client.


Pradeep Balachandran commented Oct 01 '13, 12:47 p.m.
JAZZ DEVELOPER

Hi Anjaly, Can you confirm whether you are doing the authentication as suggested in the example? Have you accessed any of the CLM servers before via the Java API?

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.