Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] exception upgrading jetty

Hi everyone,

I've just upgraded jetty version from 7.3.0 to 7.6.1
and we started to see this exception, more ore less
1 every 2 or 3 HTTP requests:

java.net.SocketException: Transport endpoint is not connected
        at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
        at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:633)
        at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
        at org.eclipse.jetty.io.nio.ChannelEndPoint.shutdownChannelInput(ChannelEndPoint.java:123)
        at org.eclipse.jetty.io.nio.ChannelEndPoint.shutdownInput(ChannelEndPoint.java:147)
        at org.eclipse.jetty.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:242)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.fill(SelectChannelEndPoint.java:309)
        at org.eclipse.jetty.http.HttpParser.fill(HttpParser.java:1038)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:276)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)


Jetty is behind an apache httpd with mod_proxy + mod_proxy_http; not every time,
but 1 out of 100 requests, associated with the java exception, the
client receives an
HTTP 502 (proxy error) from the apache httpd (apache httpd is 2.2.17); mod_proxy
is configured with no keep-alive and a very long timeout, the server
handles about
10~15 requests/sec.

If you need more details, let me know.

Greetings,

Mattia.


Back to the top