You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2004/11/18 00:44:57 UTC
DO NOT REPLY [Bug 32288] -
Socket Closed
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32288>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32288
------- Additional Comments From musik81@hotmail.com 2004-11-18 00:44 -------
I am getting a socket closed exception when I run the executeMethod method from
HTTPClient using WSAD. I was wondering if anyone can explain why? Error and
piece of code are pasted below
CODE:
HttpClient client = new HttpClient();
//Setting timeout
client.setTimeout(timeoutVal);
// Create a method instance.
GetMethod method = new GetMethod(sURLString);
// Execute the method.
int statusCode = client.executeMethod(method);
ERROR:
[11/17/04 15:33:18:000 PST] 665dd71f SystemErr R java.net.SocketException:
Socket closed
[11/17/04 15:33:18:000 PST] 665dd71f SystemErr R at
java.net.PlainSocketImpl.socketGetOption(Native Method)
[11/17/04 15:33:18:000 PST] 665dd71f SystemErr R at
java.net.PlainSocketImpl.getOption(PlainSocketImpl.java:214)
[11/17/04 15:33:18:000 PST] 665dd71f SystemErr R at
java.net.Socket.getSendBufferSize(Socket.java:548)
[11/17/04 15:33:18:000 PST] 665dd71f SystemErr R at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:696)
[11/17/04 15:33:18:000 PST] 665dd71f SystemErr R at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry
(HttpMethodDirector.java:369)
[11/17/04 15:33:18:016 PST] 665dd71f SystemErr R at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod
(HttpMethodDirector.java:178)
[11/17/04 15:33:18:016 PST] 665dd71f SystemErr R at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:437)
[11/17/04 15:33:18:016 PST] 665dd71f SystemErr R at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org