users@jersey.java.net

[Jersey] Re: Grizzly and EOFException

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Sat, 03 May 2014 09:36:07 -0700

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.

On 03.05.14 08:15, Robert DiFalco wrote:
> 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]