Re: 404 Not Found: Requested route ('firedetect.bosh-lite.com') does not exist.
Deepak Arn <arn.deepak1@...>
Hi Teo,
Thanks for the reply. I have changed the code, Now application code is not handling any thread by itself Now getting the error 502 Bad Gateway: Registered endpoint failed to handle the request. As per my understanding, it's some networking issue, which is giving Connection Refused every time when application on cloud foundry trying to make connection from outside cloud foundry. As cf_release is running locally on virtual box and other application also running on same system. So it won't give any network error. I also tried with sample application(code snippet is below), still giving Connection refused error. It may be the case, cloud foundry requires some configuration to allow egress or ingress. Could you please suggest 2017-04-05T16:14:01.08-0400 [APP/PROC/WEB/0]ERR sf(a)192.168.188.131:8080 died - exiting (java.net.ConnectException: Connection refused (Connection refused)) String url = "http://192.168.144.39:8081/Servlet2/?Temp=1"; URL siteURL = new URL(url); HttpURLConnection connection = (HttpURLConnection) siteURL.openConnection(); connection.setRequestMethod("GET"); connection.connect(); int code = connection.getResponseCode(); if (code == 200) { result = "Green"; out.println(output); } Thanks, |
|