Discussion:
Grizzly and EOFException
(too old to reply)
Robert DiFalco
2014-05-03 15:15:06 UTC
Permalink
Occasionally, maybe once every week or so, I will get an EOFException from
Grizzly Server when using Jersey. Is this to be expected or something I
need to look into?

They look like this:

java.io.EOFException: null
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.read(TCPNIOTransport.java:621)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.transport.TCPNIOTemporarySelectorReader.readNow0(TCPNIOTemporarySelectorReader.java:65)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read0(TemporarySelectorReader.java:191)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read0(TemporarySelectorReader.java:141)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:113)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:75)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at org.glassfish.grizzly.AbstractReader.read(AbstractReader.java:72)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:77)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:378)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at org.glassfish.grizzly.http.io.InputBuffer.fill(InputBuffer.java:1133)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at org.glassfish.grizzly.http.io.InputBuffer.read(InputBuffer.java:354)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.http.server.NIOInputStreamImpl.read(NIOInputStreamImpl.java:83)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:101)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.ensureLoaded(ByteSourceJsonBootstrapper.java:503)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
Oleksiy Stashok
2014-05-03 16:36:07 UTC
Permalink
Hi Robert,

do you see any functional problem related to this issue or it's just
logging?
It looks like a client unexpectedly closes the connection at the time we
try to read more data.

WBR,
Alexey.
Post by Robert DiFalco
Occasionally, maybe once every week or so, I will get an EOFException
from Grizzly Server when using Jersey. Is this to be expected or
something I need to look into?
java.io.EOFException: null
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.read(TCPNIOTransport.java:621)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.transport.TCPNIOTemporarySelectorReader.readNow0(TCPNIOTemporarySelectorReader.java:65)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read0(TemporarySelectorReader.java:191)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read0(TemporarySelectorReader.java:141)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:113)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:75)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at org.glassfish.grizzly.AbstractReader.read(AbstractReader.java:72)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:77)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:378)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.http.io.InputBuffer.fill(InputBuffer.java:1133)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.http.io.InputBuffer.read(InputBuffer.java:354)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.http.server.NIOInputStreamImpl.read(NIOInputStreamImpl.java:83)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:101)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.ensureLoaded(ByteSourceJsonBootstrapper.java:503)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
Robert DiFalco
2014-05-03 16:45:28 UTC
Permalink
Really hard to say, they are all IOS clients. But I have not heard any
complaints. Thanks for the explanation!


On Sat, May 3, 2014 at 9:36 AM, Oleksiy Stashok
Post by Oleksiy Stashok
Hi Robert,
do you see any functional problem related to this issue or it's just
logging?
It looks like a client unexpectedly closes the connection at the time we
try to read more data.
WBR,
Alexey.
Occasionally, maybe once every week or so, I will get an EOFException from
Grizzly Server when using Jersey. Is this to be expected or something I
need to look into?
java.io.EOFException: null
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.read(TCPNIOTransport.java:621)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.transport.TCPNIOTemporarySelectorReader.readNow0(TCPNIOTemporarySelectorReader.java:65)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read0(TemporarySelectorReader.java:191)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read0(TemporarySelectorReader.java:141)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:113)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:75)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at org.glassfish.grizzly.AbstractReader.read(AbstractReader.java:72)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:77)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:378)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at org.glassfish.grizzly.http.io.InputBuffer.fill(InputBuffer.java:1133)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at org.glassfish.grizzly.http.io.InputBuffer.read(InputBuffer.java:354)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.grizzly.http.server.NIOInputStreamImpl.read(NIOInputStreamImpl.java:83)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:101)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
at
com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.ensureLoaded(ByteSourceJsonBootstrapper.java:503)
~[wai-server-rest-0.1.0.BUILD-SNAPSHOT.jar:na]
Loading...