This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 17018

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Connection reset
It's not a secret anymore!