• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connection reset by peer: socket write error

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, out is always some kind of OutputStream. OutputStream has the flush() method. Isn't inheritance wonderful!
Bill
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic