https://issues.apache.org/bugzilla/show_bug.cgi?id=56581
Bug ID: 56581 Summary: When an error occurs on a long JSP page, do not loose last chunk of printed text Product: Tomcat 8 Version: 8.0.8 Hardware: PC Status: NEW Severity: enhancement Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: knst.koli...@gmail.com Created attachment 31680 --> https://issues.apache.org/bugzilla/attachment.cgi?id=31680&action=edit test.jsp (Reproducible with the current trunk @1598763 If there is a JSP page that generates a lot of text and then encounters an error, the client receives only 8K*n bytes of text. The last chunk of text - before the actual place of the error is lost and not sent to the client. To reproduce: 1. Deploy the attached test.jsp and call it. 2. Actual behaviour: The last line of text is "970 ". If you save the result, it will be 16384 (16 Kb) (with LF line ends). Expected behaviour: The last line of text is "1000 Hello world!". My motivation for this enhancement request is that seeing all the text before the error place would make it easier to locate the error. Also the lost ~8K of text may contain something valuable for the client. The current workaround is to look into localhost.date.log for the actual stack trace. The stacktrace is for generated java file. It may contain a JSP source snippet, but not always. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org