File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Connection reset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Connection reset" Watch " Connection reset" New topic
Author Connection reset

Divya Comv

Joined: Sep 18, 2013
Posts: 1
Hi Folks,

We are getting below random error while sending request from one web application to another.

It is messing up the live application only for some of the requests. Connection reset
at org.apache.commons.httpclient.HttpParser.readRawLine(
at org.apache.commons.httpclient.HttpParser.readLine(
at org.apache.commons.httpclient.HttpConnection.readLine(
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(
at org.apache.commons.httpclient.HttpMethodBase.readResponse(
at org.apache.commons.httpclient.HttpMethodBase.execute(
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
at org.apache.commons.httpclient.HttpClient.executeMethod(
at org.apache.commons.httpclient.HttpClient.executeMethod(
at com.btsl.flares.apps.mmoney.communicator.HTTPCommunicator.sendHTTPMessage(
at com.btsl.flares.apps.mmoney.acceptor.handler.OneShotRequestHandler.processResponse(

Please suggest what could be possible reason and fixes for the above issue.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Welcome to the JavaRanch, Divya!

Socket exceptions usually mean that something broke the link between client and server. This can happen if there is a problem with the network, such as unreliable equipment or bad configuration (the MTU settings are often involved).

The other possibility for a connection reset is when it takes too long for a server to fulfil a client request. In that case, the client may timeout while waiting for the server. This can be managed by proper web application design.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Connection reset
jQuery in Action, 3rd edition