File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Possible causes and fixes for ClientAbortException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Possible causes and fixes for ClientAbortException" Watch "Possible causes and fixes for ClientAbortException" New topic

Possible causes and fixes for ClientAbortException

Boris Golman
Ranch Hand

Joined: Apr 24, 2008
Posts: 37
Hello, everyone. I have a question, which is more like gathering opinions. I have a java code that renders PDF document, based on the XML instance I generate. Everything works fine, and the document is rendered properly on the web page, except that one time (and it happened only once, it seems), document rendering failed, giving me this error:

at org.apache.catalina.connector.OutputBuffer.realWriteBytes(
at org.apache.tomcat.util.buf.ByteChunk.append(
at org.apache.catalina.connector.OutputBuffer.writeBytes(
at org.apache.catalina.connector.OutputBuffer.write(
at org.apache.catalina.connector.CoyoteOutputStream.write(
at org.apache.catalina.connector.CoyoteOutputStream.write(

which happened, when the code was already writing the byte array into an OutputStream. From what I gathered, it could happen when the internet connection goes down, or uploading process fails to respond. I would like to know, if there are any other reasons for that exception to occur, given that it has worked before and it works now. And what be the best solution or a workaround to prevent this from happening? Is exception handling my only option? I just want to see if anyone else had this problem, especially while rendering a PDF document of a web page, and if there is a way to bypass it somehow.

I agree. Here's the link:
subject: Possible causes and fixes for ClientAbortException
It's not a secret anymore!