JDK-7002602 : ImageIO.write does not write content to file on Solaris and Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.imageio
  • Affected Version: 6u22
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: generic
  • Submitted: 2010-11-24
  • Updated: 2011-09-02
  • Resolved: 2011-01-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u22Resolved
Related Reports
Duplicate :  
Description
When writing images using ImageIO we are seeing odd results.  
I have a test case which I was running with 1.6.0_20.  
The test creates a JFrame, builds a BufferedImage from it, and then saves it as a ���png��� and a ���jpg��� file.  When the test is executed on Windows the images are saved and viewable as expected.  
When executed on Linux x64, Solaris x86 (and other UNIX platforms as well) using the 1.6.0_20 32-bit JRE, when I view the saved images I only see a black canvas.  
Another data point, if I run the same test with Java 5 on UNIX the images are written correctly 
to the ���png��� and ���jpg��� files.

It seems to be something with Java 6 and UNIX specifically.

Comments
EVALUATION Note that this problem has no relation to ImageIO. The failure of the test is caused by JFrame.paintAll(), which paints nothing on X11 environment. Please see CR 6596915 for more details.
26-11-2010