on 03-02-2017 12:28 PM
I have created a Java app which is trying to make REST call to the third party service deployed somewhere on internet. I'm using org.apache.http.client.HttpClient library to make Get and post call. The app is working fine when run on my local machine and it is able to connect to remote service and able to get the data. But when I deployed it on HCP, I get error as "113 (No route to host), error: Host unreachable (local port 45560 to address 0.0.0.0, remote port 443 to address <IPAddressOfRemoteSystem>". The protocol the remote system uses is https.
I have also created a destination with the URL in cockpit, keeping authentication as "No Authentication". But it did not help. The code that I'm using is like this -
HttpClient client = HttpClientBuilder.create().build();
HttpGet request = new HttpGet(url);
HttpResponse response = client.execute(request);
statusCode = response.getStatusLine().getStatusCode();
3rd line of this code gives this error. Any help would be greatly appreciated.
From a trial account, access to external systems on ports <1024 , the usage of an https proxy is mandatory. Proxy usage is not needed when external ports are >1024. On factory and productive landscapes proxy is not mandatory.
Proxy is configured on hanatrial JVM level with -Dhttps.proxyHost=proxy-trial.od.sap.biz , -Dhttps.proxyPort=8080
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.