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

Error using the OSLC Example with Jazz Sandbox

Hi,

I want to access the Jazz.net Sandbox with the sample Javacode from the OSLC workshop. I use the example 03 "Print out the content of the Service Providers catalog".

My settings in the main method are:

String server = "https://jazz.net/sandbox01-rm";            // Set the Public URI of your RRC server
          String JTS_Server = "https://jazz.net/sandbox01-jts";
                    String login = "xxx";                                                     // Set the user login
                    String password = "xxx";                                             // Set the associated password
                   //============== -------------------------------------- =============//           
                    String rootServices = server + "/rootservices";
                    String catalogXPath = "/rdf:Description/oslc_rm:rmServiceProviders/@rdf:resource";
                    String serviceProviderTitleXPath = "//oslc:ServiceProvider/dcterms:title";

When I debug the sample it's all ok, I get the response body with the rootservice document.

But when I reach the authentication method in the httpUtils class: doRRCOAuth I get an exception.

When it tries to get the locationheader:

                //Second GET
                Header location = documentResponse.getFirstHeader("Location");
                HttpGet request3 = new HttpGet(location.getValue());
 
the method documentResponse.getFirstHeader("Location"); returns a null value.

I have a Jazz Team Server environment in a VM-image and there the example works.

Has anyone an idea to this issue?

regards,
Lars

0 votes


Accepted answer

Permanent link
Lars
I have reproduced your issue and have opened this defect:   https://jazz.net/jazz03/web/projects/Requirements%20Management#action=com.ibm.team.workitem.viewWorkItem&id=69910

Please subscribe yourself to the workitem to follow the discussion and any possible workarounds provided.
Lars Fockele selected this answer as the correct answer

0 votes


One other answer

Permanent link
Hi Rosa,

thank you for your help!

regards,
Lars

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
× 12,025
× 516

Question asked: Jun 07 '12, 8:38 a.m.

Question was seen: 3,881 times

Last updated: Jan 11 '13, 3:09 a.m.

Confirmation Cancel Confirm