Can Some one Help me, how we can solve the following problem.
nested
exception is org.apache.commons.httpclient.ConnectTimeoutException: The host did
not accept
Your program will get a ConnectionTimeoutException
whenever the server side does not "exist". A timeout of 10 seconds (10000 ms) is sufficient to work in most cases to connect between any processes even when located far apart (high latency).
There are many reasons why the client cannot get a connection:
Typically, though these result in quick failure responses because the server operating system or some router is able to respond with a failure. Here are some more that may apply directly to your situation:
These kinds of problems usually result in the time out exception because there is no return message (the client operating system just has to give up and that is the reasons for having a timeout).
This list may not be complete but may help you in troubleshooting your problem. If you can provide additional information about your configuration and network and what you specifically would like help resolving, someone here should be able to give you more specific assistance.