Fisheye Logs Report org.mortbay.jetty.EofException
問題
Fisheye reports a number of following similar exceptions in the atlassian-fisheye-YYYY-MM-DD.log
:
2013-06-27 05:40:09,195 ERROR [btpool0-6515 ] fisheye TotalityFilter-logExceptionDetails - Exception "null" (org.mortbay.jetty.EofException) while processing "/avatar/<Username>" (Referer:"http://<URL>/")
org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:791)
at org.mortbay.jetty.HttpGenerator.complete(HttpGenerator.java:678)
at org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:653)
at org.mortbay.jetty.HttpConnection$Output.close(HttpConnection.java:997)
Caused by: java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:170)
at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:221)
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:720)
... 57 more
There is no apparent error on screen and no particular action that seems to trigger it.
原因
These exceptions are caused when a user's browser terminates a connection, for whatever reason. They typically happen if a user shuts a browser tab while it is loading, or navigates away from the current page before the page itself is fully loaded or one of the items on the page (e.g. the avatar image) has finished being sent.
ソリューション
These exceptions are totally harmless and can be safely ignored. Other than adding some noise to the Fisheye logs, they do not indicate any problems with the application itself.