I am getting this error sporadically too. What I think may be happening is that the webserver HTTP keep-alive time (5 seconds) is at just the right time that the software is somewhat likely to send a subsequent request just before the 5 seconds is up. Then, the server closes the connection as it is on the way and an error occurs. If this is the case, would I be safe to retry that request?
However, the name "NoHttpResponseException" seems to imply that the server may have received the request, but the response cannot be read. That would imply that I would NOT be safe to automatically re-send non-idempotent requests. Is this true? Or can I safely resend all requests? On a side note, is this a common thing that browsers handle all the time? Mark Claassen Senior Software Engineer Donnell Systems, Inc. 130 South Main Street Leighton Plaza Suite 375 South Bend, IN 46601 E-mail: mailto:mclaas...@ocie.net Voice: (574)232-3784 Fax: (574)232-4014 ------------------------------------------- Confidentiality Notice: OCIESERVICE ------------------------------------------- The contents of this e-mail message and any attachments are intended solely for the addressee(s) named in this message. This communication is intended to be and to remain confidential. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and its attachments. Do not deliver, distribute, copy, disclose the contents or take any action in reliance upon the information contained in the communication or any attachments. -----Original Message----- From: Stefan Magnus Landrø [mailto:stefan.lan...@gmail.com] Sent: Tuesday, July 14, 2015 3:10 AM To: HttpClient User Discussion Subject: Re: Do I need to worry about NoHttpResponseException? Sendt fra min iPhone > Den 13. jul. 2015 kl. 22.30 skrev Check Peck <comptechge...@gmail.com>: > > I see. Do I need to worry about this error I would. I would check server logs at relevant times. > and how can I avoid this error. Fix your server so it performs consistently or fix the fw config so it allows long lived connections > Any idea? > > On Mon, Jul 13, 2015 at 1:56 AM, Stefan Magnus Landrø < > stefan.lan...@gmail.com> wrote: > >> Your server is overloaded or persistent connections got shutdown by a >> fw >> >> Sendt fra min iPhone >> >>> Den 13. jul. 2015 kl. 09.58 skrev Check Peck <comptechge...@gmail.com>: >>> >>> Does anyone have any idea on this? >>> >>>> On Sat, Jul 11, 2015 at 6:24 PM, Check Peck >>>> <comptechge...@gmail.com> >> wrote: >>>> >>>> I am using Apache HttpClient 4.5 version in my library and I am >>>> seeing below exception coming up always: I am not sure from where >>>> this >> exception >>>> is coming. >>>> >>>> I/O exception (org.apache.http.NoHttpResponseException) caught >>>> when processing request to {}->http://machineA:8080: The target >>>> server >> failed >>>> to respond >>>> - Retrying request to {}->http://machineA:8080 >>>> - I/O exception (org.apache.http.NoHttpResponseException) caught >>>> when processing request to {}->http://machineA:8080: The target >>>> server >> failed >>>> to respond >>>> - Retrying request to {}->http://machineA:8080 >>>> - I/O exception (org.apache.http.NoHttpResponseException) caught >>>> when processing request to {}->http://machineA:8080: The target >>>> server >> failed >>>> to respond >>>> - Retrying request to {}->http://machineA:8080 >>>> - I/O exception (org.apache.http.NoHttpResponseException) caught >>>> when processing request to {}->http://machineB:8080: The target >>>> server >> failed >>>> to respond >>>> - Retrying request to {}->http://machineB:8080 >>>> >>>> I am using "RestTemplate" as my HttpClient in one of my library and >>>> with "RestTemplate" I am using PoolingHttpClientConnectionManager >>>> and other properties of Apache HttpClient as shown below. >>>> >>>> Here is my "DataClient" class as shown in this gist - >>>> https://gist.github.com/TechGeeky/b0bef73a03657187cce3 >>>> >>>> And here is my simple class which will perform the actual task: >>>> https://gist.github.com/TechGeeky/7f3a02398b73b60f899c >>>> >>>> And here is my factory which I am using to create a single instance >>>> of "DataClient" which means, it will also have single instance of >>>> "RestTemplate" as well: >>>> >>>> https://gist.github.com/TechGeeky/9cebb859ce1a6ecb088b >>>> >>>> And this is the way I will make a call to get the data from my >>>> "DataClient" library: >>>> >>>> DataResponse response = >>>> DataClientFactory.getInstance().executeSync(dataKey); >>>> >>>> Now my question is - Why I am seeing that exception, do I need to >>>> worry about anything with the above exception? And how can I >>>> suppress that exception if there is any way to fix it? >>>> >>>> In my "DataClient" class, I am making HttpClient connection by >>>> using various properties. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org >> For additional commands, e-mail: httpclient-users-h...@hc.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org