https://issues.apache.org/bugzilla/show_bug.cgi?id=45609
Summary: contentType=image sometime cause strange character (??)
with UTF-8 encoding and throw
java.lang.IllegalStateException
Product: Tomcat 6
Version: 6.0.13
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=22424)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22424)
screenshots and source code to generate the problem
please see screenshots for this problem.
the problem sometime occur if we have 1 jsp that contentType=image/png or
image/jpg and that JSP write image to the out stream.
when other jsp call that page many times. the server throws
java.lang.IllegalStateException. and sometime the character encoding is become
"?????"
please see attached phone.jsp, it is the jsp that write image to the output
stream and get parameter id=[number].
you can call phone.jsp?id=123 without any problem or Exception.
But if you call it many times (please use testphone.jsp to test).
when you refresh the testphone.jsp page many times. the UTF-8 encoding become
broken and you can see only "????" character.
I tried on both Windows and Unix and it has the same problem.
Here are the error from localhost logs.
Aug 11, 2008 11:35:12 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:662)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:325)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]