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:
ClientAbortException: java.io.IOException at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)
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.