hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "test test" <te...@doramail.com>
Subject MultiThreadedHttpConnectionManager bug?
Date Sun, 25 Nov 2007 17:03:11 GMT
Do you know whether MultiThreadedHttpConnectionManager has a bug? It looks like after I received
a couple of connection reset from the server. It somehow did not clean up things properly
and I end up with stuck threads. I use HttpClient 3.0.1 

Thanks, 
Nat 

Exception 
Caused by: java.net.SocketException: Connection reset 
        at java.net.SocketInputStream.read(SocketInputStream.java:168) 
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) 
        at java.io.BufferedInputStream.read(BufferedInputStream.java:239) 
        at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) 
        at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) 
        at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1114)

        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnecti

onManager.java:1373) 
        at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)

        at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)

        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:982) 
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)

        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)

        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) 
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) 

Stuck Thread 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool@1cb3b6c[fat
lock 
] 
    jrockit.vm.Threads.waitForSignal(Native Method) 
    java.lang.Object.wait(Native Method) 
    org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:509)

    ^-- Lock released while waiting: org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool@1cb3b6c[fat
loc 
k] 
    org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.jav

a:394) 
    org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:152)

    org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) 
    org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

-- 
_______________________________________________
Get your free email from http://mail.doramail.com

Powered by Outblaze

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message