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 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
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
Accepted answer
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.
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.