Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection reset by peer: socket write error  RSS feed

 
Venkat rama
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, out is always some kind of OutputStream. OutputStream has the flush() method. Isn't inheritance wonderful!
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!