Relevant snip of code is:
Relevant snip of stack trace is:
Servlet failed with Exception
java.lang.RuntimeException: IOException occured
at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:178)
at weblogic.servlet.internal.WLOutputStreamWriter.write(WLOutputStreamWriter.java:99)
at weblogic.servlet.internal.WLOutputStreamWriter.write(WLOutputStreamWriter.java:111)
at java.io.PrintWriter.write(PrintWriter.java:208)
at java.io.PrintWriter.write(PrintWriter.java:224)
at java.io.PrintWriter.print(PrintWriter.java:369)
at com.myCode.servlet.myServlet.doGet(myServlet.java:282)
Line 282 in myServlet is the one above: out.print(completeDoc);
Now this happens once in ~1000 accesses to this servlet. While I will be adding code to catch the IOException and print details, I was hoping if someone could point me towards possible issues. Also, perhaps it might be more correct to convert this statement to: out.print(completeDoc.toString());