Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4485247
Votes 0
Synopsis Unnecessary dependency on X server
Category jai:implementation
Reported Against 1.2.2
Release Fixed
State 11-Closed, duplicate of 4281163, bug
Priority: 2-High
Related Bugs 4281163
Submit Date 27-JUL-2001
Description
The ISV is running an image translation server as a background
process.   This server is not running the X environment and
they are running into some X dependencies with only a few
of their translations. 

Attached is a Java program that demonstrates the problem.   
It does nothing but read a JPEG file and then write 
it back into another file.

The attached exception is thrown by this Java program on 
certain images.
 
The ISV noticed that not all jpegs will cause this program
to fail. For example, an 8 bit gray scale JPEG will be processed with or
without the X environment.   For this reason I have attached a 
image which demonstrates the X environment dependency.

This was tested with java version:
  - 1.2.2 and 1.3
JAI version:
  - 1. customer  and 1.1
Work Around
Set the DISPLAY environment variable to an X server
running on the network.
Evaluation
JAI uses the com.sun.image.codec.jpeg encoder/decoder to read in / write out JPEG files. The X dependency is therefore in this codec code. I am closing this bug as a duplicate of the generic headless server bug.

  xxxxx@xxxxx   2001-07-27
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang