...
Permalink to this page: https://cwiki.apache.org/confluence/x/DColBg
Questions
- What are the known issues in any given Tomcat version?
- What are the known issues with the Oracle JRE?
- What are the known issues with the OpenJDK?
- I'm using the Java ImageIO to dynamically serve images and get strange Exceptions from time to time. Is this a bug in Tomcat?
Answers
Anchor | ||||
---|---|---|---|---|
|
...
An alternative would be to write the Image contents to a ByteArrayOutputStream, and using its writeTo() method to write the contents to the Servlet's Response. However that would require some additional memory, as the contents have to be buffered.
Anchor | ||||
---|---|---|---|---|
|
The third party PDF generating software module PD4ML has had a corresponding problem when calling the render() methods in class org.zefer.pd4ml.PD4ML with response.getOutputStream() as argument. That causes the response stream to be closed from a finalizer() method of a class called PD4Device. When using an Apache/Tomcat connector, this unexpected stream close from the finalizer thread has occationally caused responses to be sent to wrong requestor (request/response mix up). The workarounds described above for ImageIO works perfectly in this case too.
...