Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add an anchor #PD4ML for the section discussing an issue in that library.

...

Permalink to this page: https://cwiki.apache.org/confluence/x/DColBg

Questions

  1. What are the known issues in any given Tomcat version?
  2. What are the known issues with the Oracle JRE?
  3. What are the known issues with the OpenJDK?
  4. 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
TomcatIssues
TomcatIssues
What are the known issues in any given Tomcat version?

...

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
PD4ML
PD4ML
Are there any other corresponding cases of this bug?

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.

...