Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367359

Summary: org.eclipse.jetty.io.EofException: null
Product: [RT] Jetty Reporter: Flavio Donze <flavio.donze>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: unspecified   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Flavio Donze CLA 2011-12-21 12:52:46 EST
Build Identifier: 7.5.4

I'm have the following Exception in my log, only on debug level. I can not reproduce this exception, I get it from a client installation. Maybe someone can tell from the stacktrace what the problem is.

Jetty 7.5.4
Java 1.7.0_01


[2011-12-21 15:43:15,865] DEBUG: org.eclipse.jetty.server.HttpConnection - 
org.eclipse.jetty.io.EofException: null
	at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:921) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.AbstractGenerator.flush(AbstractGenerator.java:452) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpOutput.flush(HttpOutput.java:94) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpConnection$Output.flush(HttpConnection.java:1010) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:173) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:101) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.equinox.http.servlet.internal.ResourceServlet.writeResourceToOutputStream(ResourceServlet.java:164) ~[na:na]
	at org.eclipse.equinox.http.servlet.internal.ResourceServlet$1.run(ResourceServlet.java:112) ~[na:na]
	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0]
	at org.eclipse.equinox.http.servlet.internal.ResourceServlet.writeResource(ResourceServlet.java:60) ~[na:na]
	at org.eclipse.equinox.http.servlet.internal.ResourceServlet.service(ResourceServlet.java:50) ~[na:na]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet_2.5.0.v201103041518.jar:na]
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) ~[na:na]
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126) ~[na:na]
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) ~[na:na]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet_2.5.0.v201103041518.jar:na]
	at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120) ~[na:na]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet_2.5.0.v201103041518.jar:na]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) ~[org.eclipse.jetty.servlet_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480) ~[org.eclipse.jetty.servlet_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) ~[org.eclipse.jetty.security_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) ~[org.eclipse.jetty.servlet_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.Server.handle(Server.java:345) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919) [org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582) [org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) [org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) [org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) [org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) [org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) [org.eclipse.jetty.util_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) [org.eclipse.jetty.util_7.5.4.v20111024.jar:7.5.4.v20111024]
	at java.lang.Thread.run(Unknown Source) [na:1.7.0]
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
	at sun.nio.ch.SocketDispatcher.writev0(Native Method) ~[na:1.7.0]
	at sun.nio.ch.SocketDispatcher.writev(Unknown Source) ~[na:1.7.0]
	at sun.nio.ch.IOUtil.write(Unknown Source) ~[na:1.7.0]
	at sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[na:1.7.0]
	at java.nio.channels.SocketChannel.write(Unknown Source) ~[na:1.7.0]
	at org.eclipse.jetty.io.nio.ChannelEndPoint.gatheringFlush(ChannelEndPoint.java:354) ~[org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:292) ~[org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:300) [org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:848) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	... 40 common frames omitted
[2011-12-21 15:43:15,865] DEBUG: org.eclipse.jetty.io.nio - EOF
org.eclipse.jetty.io.EofException: null
	at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:921) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.HttpGenerator.complete(HttpGenerator.java:814) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpConnection.completeResponse(HttpConnection.java:603) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.Response.complete(Response.java:1157) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:516) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) ~[org.eclipse.jetty.server_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) ~[org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) [org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) [org.eclipse.jetty.util_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) [org.eclipse.jetty.util_7.5.4.v20111024.jar:7.5.4.v20111024]
	at java.lang.Thread.run(Unknown Source) [na:1.7.0]
Caused by: java.nio.channels.ClosedChannelException: null
	at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(Unknown Source) ~[na:1.7.0]
	at sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[na:1.7.0]
	at java.nio.channels.SocketChannel.write(Unknown Source) ~[na:1.7.0]
	at org.eclipse.jetty.io.nio.ChannelEndPoint.gatheringFlush(ChannelEndPoint.java:354) ~[org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:292) ~[org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:300) ~[org.eclipse.jetty.io_7.5.4.v20111024.jar:7.5.4.v20111024]
	at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:848) ~[org.eclipse.jetty.http_7.5.4.v20111024.jar:7.5.4.v20111024]
	... 13 common frames omitted

Reproducible: Couldn't Reproduce
Comment 1 Greg Wilkins CLA 2011-12-22 00:48:07 EST
It is a slightly strange EoF, but none the less it is an Eof and caused by the remote end closing the connection.   I don't see any jetty issues there.