[Winstone-devel] java.net.SocketException while running Winstone
Status: Beta
Brought to you by:
rickknowles
From: lital k. <li...@co...> - 2005-06-07 10:26:22
|
Hi, I'm using your Winstone servlet container in the new web Console I'm building for the MantaRay open source project (see our web site at http://www.mantamq.org/ ) I have run into a problem that occurs only in scenarios of refreshment of my Console web page. I have had the following exception thrown into the cmd window: [Winstone 2005/06/06 18:02:58] - Untrapped Error in Servlet java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.ByteArrayOutputStream.writeTo(Unknown Source) at winstone.WinstoneOutputStream.commit(WinstoneOutputStream.java:121) at winstone.WinstoneOutputStream.write(WinstoneOutputStream.java:79) at java.io.OutputStream.write(Unknown Source) at winstone.StaticResourceServlet.doGet(StaticResourceServlet.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:47) at winstone.RequestDispatcher.forward(RequestDispatcher.java:295) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav a:232) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) [Winstone 2005/06/06 18:02:58] - Error within request handler thread java.lang.IllegalStateException: Response cannot be reset - it is already commit ted at winstone.WinstoneResponse.resetBuffer(WinstoneResponse.java:368) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav a:238) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) This exception caused no problems with the Console itself, everything continued working fine and I got the web pages as should. Is this a known problem? Could you please help me solve it? Would appreciate you help. p.s. I have read somewhere that this problem could occur if you don't close the input/output streams and socket connection properly. Regards, Lital kasif (li...@co...) Coridan Inc. webSite: <http://www.coridan.com> www.coridan.com |