hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: intermittent SocketException in HC 4.0.1 GA
Date Sun, 28 Mar 2010 13:52:24 GMT
Natarajan_Valli@emc.com wrote:
> I just updated our code to use HC 4.0.1 GA (no change to server app that
> run in jboss server) and getting following 2 exceptions 
> 
>  
> 
> Any suggestions to resolve this issue would be much appreciated.
> 
>  
> 
> Thanks again,
> 
> Valli
> 

In both cases the request failed because the server dropped the 
connection unexpectedly while HttpClient reading / writing data.

This is not a client side issue.

You have two options:

(1) fix problem on the server side
(2) retry failed request on the client side

Oleg

>  
> 
> java.net.SocketException: Software caused connection abort: socket write
> error
> 
>                 at java.net.SocketOutputStream.socketWrite0(Native
> Method)
> 
>                 at
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 
>                 at
> java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> 
>                 at
> org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessio
> nOutputBuffer.java:128)
> 
>                 at
> org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOut
> putStream.java:121)
> 
>                 at
> org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOut
> putStream.java:127)
> 
>                 at
> org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:75)
> 
>                 at
> org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.
> java:127)
> 
>                 at
> org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(Abst
> ractHttpClientConnection.java:253)
> 
>                 at
> org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(Ab
> stractClientConnAdapter.java:218)
> 
>                 at
> org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestEx
> ecutor.java:249)
> 
>                 at
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor
> .java:124)
> 
>                 at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReques
> tDirector.java:483)
> 
>                 at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:641)
> 
>                 at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:731)
> 
>                 at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:717)
> 
>  
> 
>  
> 
>  
> 
> Caused by: java.net.SocketException: Software caused connection abort:
> recv failed
> 
>                 at java.net.SocketInputStream.socketRead0(Native Method)
> 
>                 at
> java.net.SocketInputStream.read(SocketInputStream.java:129)
> 
>                 at
> org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSe
> ssionInputBuffer.java:130)
> 
>                 at
> org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.j
> ava:127)
> 
>                 at
> org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSess
> ionInputBuffer.java:233)
> 
>                 at
> org.apache.http.impl.conn.LoggingSessionInputBuffer.readLine(LoggingSess
> ionInputBuffer.java:100)
> 
>                 at
> org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultRespons
> eParser.java:98)
> 
>                 at
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParse
> r.java:210)
> 
>                 at
> org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(
> AbstractHttpClientConnection.java:271)
> 
>                 at
> org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(
> DefaultClientConnection.java:227)
> 
>                 at
> org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeade
> r(AbstractClientConnAdapter.java:209)
> 
>                 at
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpReque
> stExecutor.java:292)
> 
>                 at
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor
> .java:126)
> 
>                 at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReques
> tDirector.java:483)
> 
>                 at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:641)
> 
>                 at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:576)
> 
>                 at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:554)
> 
> 


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


Mime
View raw message