Re: [jetty-user] EOF exception after upgrade to Jetty 7?

"Martin Strand" <[email protected]>
Newsgroups gmane.comp.java.jetty.support
Message-ID <op.vmzget10000avy@desktop>
I've seen this myself (with Jetty 6) in a scenario similar to yours.
We could reproduce it manually by hitting "stop" or "back" fast enough.  
Perhaps you need to write a test to make it appear, I'm pretty sure you  
would see the exception if you could have the client disconnect while the  
transformation is running.

We did what you suggest, unwrapped the thrown exception and ignored it if  
there was an underlying EOFException or SocketException.

Martin

On Tue, 30 Nov 2010 12:31:41 +0100, John English <[email protected]> wrote:

> I have a web app which generates XML which is then transformed by XSLT
> into the final HTML for the page. This has worked fine for several
> years.
>
> Having recently upgraded to Jetty 7 from Jetty 5, I'm suddenly getting
> errors like this from my XSLT filter:
>
> XML transformation error: org.eclipse.jetty.io.RuntimeIOException:
>    org.eclipse.jetty.io.EofException
>
> or this:
>
> XML transformation error:
>    com.sun.org.apache.xalan.internal.xsltc.TransletException:
>    com.sun.org.apache.xalan.internal.xsltc.TransletException:
>    org.eclipse.jetty.io.RuntimeIOException:
>    org.eclipse.jetty.io.EofException
>
> This is only happening occasionally, not consistently. When I print out
> the XML that the transformer is complaining about, it looks complete.
>
> My suspicion is that it happens when users load a page and then change
> their minds and go elsewhere before the output has all been sent to the
> browser. However, I haven't managed to reproduce this yet. Obviously I
> could catch this exception (not easy, since it's usually fairly deeply
> wrapped by Xalan) and ignore it, but I'd prefer to do it the "right"
> way by eliminating the cause of the error.
>
> Is there something new in Jetty 7 that I need to know about?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.