Hello,
I am currently working on some JAVA code and could not find a reason why my code is not working. I am building a consumer of oData that is connecting on SuccessFactors, the destination is configured using the guidelines.
I think my issue sits on the library I am using. I deployed the application on HCP as a Java Web and used the JRE 7.
My code looks like the following
import org.apache.http.client.methods.HttpGet; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient;
HttpGet get = createGetRequest(path); HttpResponse response; try { response = httpClient.execute(get); } catch (Exception ex) { }
And for a reason I cannot explain, when the app reaches httpClient.execute(get), it does not even raise the exception and it goes out of the method.
In debug, I see the following which makes me think that something is wrong with the arguments I pass to the method.
The HttpClient has the type com.sap.core.connectivity.httpdestination.impl.HttpClientWrapper.
I also check the methods using httpClient.getClass().getMethods() and could find that the method was present.
I was wondering if someone could help me find a solution of point me to some direction
Thanks
Greg