Greg Lindholm wrote:

>  I have a web app that uses HttpClient 4.1.3 and HttpCode 4.1.4 to send a
>  request to another service I also run and the client is getting occasional
>  status codes 505 and 400 reported.

While you stated that you see nothing wrong in the logs on the server side, it
is still likely that the status codes actually come from the server.

To prove that, you could look at enabling wire or header logging on the client
side. While it produces quite a lot of log data, 50k requests per day isn't
that much, and you should be able to handle it at least for a day or so. Just
don't forget to include the thread id in your logging pattern, %t in log4j.

>  My service is running under Tomcat 6 and it doesn't (in my code) ever
>  return a status 400 or 505, and there is nothing in the service logs to
>  indicate a problem.

Nothing in catalina.out either? Do you by any chance run Tomcat behind Apache
Httpd as a proxy? Then the requests that fails might not even reach tomcat.
Try checking the server access and error logs, and see if it records your
unexpected status codes there.

--
Fredrik Jonson


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to