DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28347>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28347 Response committed before invocation of service method Summary: Response committed before invocation of service method Product: Tomcat 5 Version: 5.0.19 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hello I have provided a sample encoding.war, proving that: 1/ on unpredictable times the default character encoding UTF-8 is switched to ISO-8859-1 2/ a response is sometimes committed before the invocation of the _jspService method This small sample application does the following. The index.jsp contains 400 frames. The uneven frames request a JSP that produces html with the (€) euro character (UTF-8 hex code E282AC). The even frames request a Servlet that produces an image/png with the euro character. 400 requests are thus received by Tomcat. The html is served by a JSP Document. The image/png is served by a Servlet test.ImageSender, which makes use of javax.imageio. Source is provided in WEB-INF/classes/test. You will notice (check the log files) that 1/ When Tomcat sends the html with the euro character, the character encoding is sometimes ISO-8859-1 instead of UTF-8. 2/ Sometimes response.isCommitted() returns true before the invocation of the service method (the container might therefore throw IllegalStateException if we'ld use sendRedirect() or forward()). My system info: Microsoft Windows Server 2003 Entreprise Edition Java 1.4.2_02 Tomcat 5.0.19 Thanks for your reply. Koen Heene Contracted trainer at Sun Microsystems Educational Services Belgium --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]