Re: Connection reset by peer
leon_nicholls <leon_nicholls <at> yahoo.com>
2003-04-01 18:43:31 GMT
I am using jboss-3.0.4-jetty4.2.6-pr and I am still getting the
following kinds of errors occasionally:
2003-04-01 12:32:09,374 WARN [org.jboss.jbossweb] WARNING: Exception
for /emsGui/jsp/admin/administration/userRoles/userRoles.htm
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(Unknown Source)
at org.mortbay.util.ByteArrayISO8859Writer.writeTo
(ByteArrayISO8859Writer.java:95)
at org.mortbay.http.NullableOutputStream.writeHeader
(NullableOutputStream.java:62)
at org.mortbay.http.HttpOutputStream.writeHeader
(HttpOutputStream.java:416)
at org.mortbay.http.HttpConnection.commit
(HttpConnection.java:686)
at org.mortbay.http.HttpConnection.outputNotify
(HttpConnection.java:502)
at org.mortbay.http.HttpOutputStream.notify
(HttpOutputStream.java:550)
at org.mortbay.http.HttpOutputStream.flush
(HttpOutputStream.java:481)
at org.mortbay.jetty.servlet.ServletHttpResponse.flushBuffer
(ServletHttpResponse.java:215)
at org.mortbay.jetty.servlet.Default.passConditionalHeaders
(Default.java:426)
at org.mortbay.jetty.servlet.Default.handleGet
(Default.java:204)
at org.mortbay.jetty.servlet.Default.service(Default.java:153)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:360)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:280)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:553)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1717)
at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:549)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1667)
at org.mortbay.http.HttpServer.service(HttpServer.java:862)
at org.jboss.jetty.Jetty.service(Jetty.java:497)
at org.mortbay.http.HttpConnection.service
(HttpConnection.java:759)
at org.mortbay.http.HttpConnection.handleNext
(HttpConnection.java:923)
at org.mortbay.http.HttpConnection.handle
(HttpConnection.java:776)
at org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:202)
at org.mortbay.util.ThreadedServer.handle
(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run
(ThreadPool.java:455)
--- In jetty-support <at> yahoogroups.com, Greg Wilkins <gregw <at> m...> wrote:
>
> Firstly, I think I have solved the issue, by wrapping the
> low level IOExceptions that jetty may receive and handling
> them in a quieter manner. This is in Jetty 4.2 and you could
> try the 3.0.4 jbossweb.sar on the jetty sourceforge site (it
> may work with 3.0.3 - but I have not tried it).
>
> Note that the connection can still be closed unexpectedly
> after the response has been sent. It may be a persistent
> connection etc. I would need to see a TCP/IP trace to
> tell exactly what IE is doing.
>
> cheers
>
>
> pieterpeter wrote:> Hi Greg (and others
,
> >
> > A few months ago, i took some time investigating this issue in our
> > application, but with no luck; now i see this message, i'd like to
> > elaborate a bit...
> >
> >
> >>They are normal - as clients can just close a connection. But
hard
> >>to distinguish from other exceptions that a servlet may generate.
> >
> >
> > I understand that part. The browser (or the user) can decide to
cancel
> > the request, and that results in this message on the server.
Crystel
> > clear.
> >
> > However, i did some test and when i load a particular .gif file
in the
> > browser (IE) it always gives me this message, whereas the size of
the
> > downloaded file is _exactly_ what it is on the server. Is it
wrong to
> > assume that this indicates that the request was not cancelled?
> >
> > Furthermore, there seems to be a connection with IE. I haven't
seen
> > this behaviour with netscape for example.
> >
> > Don't get me wrong: i'm not saying this is Jetty's fault, i'm just
> > trying to understand what is happingen (and the fact that i don't
> > realy annoys me
). And it's not a big issue, but the log
messages
> > are cluttering the log files....
> >
> > Btw, i'm using JBoss 3.0.3.
> >
> > Any ideas anyone?
> >
> > Regards,
> > Peter.
> >
> >
> >
> >
> >>4.2.x makes sure that all container generated IOExceptions are not
> >>reported as warnings and this appears to suppress this warning.
> >>
> >>Note that Jetty should never freeze - so that may be a real
problem?
> >>
> >>
> >>Stallone wrote:> Hi,
> >>
> >>>I am Jetty4.1 and my log will be flooded with "Connection reset
> >
> > by
> >
> >>>peer" and "JVM_recv in socket input stream read
> >>> " here is the log snippet........
> >>>
> >>>09:47:13.304 WARN!! Exception for /rm/iqm/images/n_node.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:13.304 WARN!! Exception for /rm/iqm/images/n_nodeplus.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:13.351 WARN!! Exception for /rm/iqm/images/nonote.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:13.398 WARN!! Exception for /rm/iqm/images/waitimage.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:16.585 WARN!! Exception for /rm/iqm/images/n_nodeplus.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:21.976 WARN!! Exception for /rm/iqm/images/n_nodeplus.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:22.476 WARN!! Exception for /rm/iqm/images/n_nodeplus.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:23.007 WARN!! Exception for /rm/iqm/images/n_nodeplus.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:28.726 WARN!! Exception for /rm/iqm/images/n_lastnode.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:28.726 WARN!! Exception for /rm/iqm/images/n_node.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:28.741 WARN!! Exception for /rm/iqm/images/n_vertline.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:28.757 WARN!! Exception for /rm/iqm/imag
> >
> > es/n_lastnodeplus.gif:
> >
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:28.820 WARN!! Exception for /rm/iqm/images/viewnote.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:28.820 WARN!! Exception for /rm/iqm/images/split.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:34.523 WARN!! Exception for /rm/iqm/images/vertline.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:41.507 WARN!! Exception
for /rm/iqm/images/n_nodeminus.gif:
> >>>java.net.SocketException: Connection reset by peer: socket write
> >
> > error
> >
> >>>09:47:46.913 WARN!! java.net.SocketException: Connection reset
by
> >>>peer: JVM_recv in socket input stream read
> >>>09:47:48.632 WARN!! java.net.SocketException: Connection reset
by
> >>>peer: JVM_recv in socket input stream read
> >>>
> >>>
> >>>Can Anyone say why these warnings keep comming up and is there a
> >
> > way
> >
> >>>to supress them. Further sometimes Jetty freezes on one
> >
> > perticular
> >
> >>>request and is these warnings has anything to do with that .....
> >>>
> >>>Thanks,
> >>>
> >>>Darshan
> >>>
> >>>
> >>>
> >>>For the latest information about Jetty, please see
> >
> > http://jetty.mortbay.org
> >
> >>>
> >>>
> >>>Your use of Yahoo! Groups is subject to
> >
> > http://docs.yahoo.com/info/terms/
> >
> >>
> >>
> >>--
> >>Greg Wilkins<gregw <at> m...> Phone/fax: +44 7092063462
> >>Mort Bay Consulting Australia and UK. h
> >
> > ttp://www.mortbay.com
> >
> >
> > For the latest information about Jetty, please see
http://jetty.mortbay.org
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
>
>
>
> --
> Greg Wilkins<gregw <at> m...> Phone/fax: +44 7092063462
> Mort Bay Consulting Australia and UK.
http://www.mortbay.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/W7NydA/hdqFAA/VygGAA/CefplB/TM
---------------------------------------------------------------------~->
For the latest information about Jetty, please see http://jetty.mortbay.org
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/