Hi, I am using HttpClient API.I have pasted part of some code below. I am getting this SocketException:socket closed on "client.executeMethod(getMethod)".How can I handle this exception ? Could you please help me ?
Transport exceptions are those caused by input/output failures such as an unreliable connection or an inability to complete the execution of an HTTP method within the given time constraint (socket timeout). Generally transport exceptions are non-fatal and may be recovered from by retrying the failed method. . . Generic transport exceptions in HttpClient are represented by the standard Java java.io.IOException class or its sub classes such as java.net.SocketException and java.net.InterruptedIOException.
So it sounds as if HttpClient can't connect to the URL you are specifying. Can you connect with a browser? Can you use HttpClient on other URL's? Have you tried reading the User's Guide (especially the troubleshooting guide), the Wiki and the mailing lists?
Thanks a lot for your giving valuable time.I will greatful for it.
I can access this site using browser.It is intranet site.It is working fine in browser.Other sites,It is working fine, but only one intranet site,It is giving this exception.Continue last three days I am trying,but I am not successful.I can't understand.