This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a webservice which is accepting a POST method with XML. It is working fine then at some random occasion, it fails to communicate to the server throwing IOException with message `The target server failed to respond`. The subsequent calls work fine.
It happens mostly, when i make some calls and then leave my application idle for like 10-15 min. the first call which i make after that returns this error.
I tried couple of things ...
I setup the retry handler like
but this retey never got called. (yes i am using right instanceof clause). While debugging this class never being called.
I even tried setting up but no use. Can someone suggest what can i do now?
Besides figuring out why i am getting exception, one of the important concern i have is why isn't the retryhandler working here?
The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Apache HttpClient "Target Server Failed to response" exception.