aspose file tools
The moose likes Servlets and the fly likes Connection reset by peer: socket write error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Connection reset by peer: socket write error" Watch "Connection reset by peer: socket write error" New topic
Author

Connection reset by peer: socket write error

Venkat rama
Greenhorn

Joined: Nov 10, 2001
Posts: 4
I am getting this problem intermitently when i am running my form
***************************
Message6946
Error31: fxbch.orders.BCHOrderCtrlServlet.forwardTo()
DateTime: Fri Nov 01 17:07:51 GMT+05:30 2002
Trace: javax.servlet.ServletException: Connection reset by peer: socket write error
Message: An exception occurred while trying to forward request to the url:BO0302
***************************
we are using
DB2(database)
web sphere
jsp
EJB
This error is not coming always, and what I have seen is it happens only when the form takes more time to load. I get a white page with this above error written in log.
does anybody know when this error comes?
thanks
Venkat
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12265
    
    1
Connection reset by peer typically means that for some reason or other, the browser closed the connection. When the servlet tries to write if finds a closed socket. Maybe the browser is timing out the connection - does your form writing servlet write anything before it starts the long process of loading the form? Maybe you could write something and flush the stream to let the browser know progress was being made.
Bill


Java Resources at www.wbrogden.com
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Hi 'ipo2000us' ,

Welcome to JavaRanch. Please take a moment to read our naming policy and change your publicly displayed name to two separate names.

Also... please don't crosspost to JSP or other forums.
Venkat rama
Greenhorn

Joined: Nov 10, 2001
Posts: 4
Hi Bill,
Thanks! for the response.
can u suggest a sample code to flush the stream?
Thanks
venkat
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12265
    
    1
Hey, out is always some kind of OutputStream. OutputStream has the flush() method. Isn't inheritance wonderful!
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection reset by peer: socket write error
 
Similar Threads
Connection reset by peer: socket write error
ClientAbortException
getting object error on my JSP
SOAP and java.net.SocketException
JSQLConnect and DBComms::transmit exception