https://issues.apache.org/bugzilla/show_bug.cgi?id=42408

--- Comment #13 from Glenn Adams <[email protected]> 2010-09-07 05:39:01 EDT ---
It would be nice if someone could commit this patch or otherwise fix this
problem, which causes the testWMF() test cases in FOP's
org.apache.fop.image.loader.batik.Image*TestCase to fail when java.awt.headless
is true.

The problem code is found in AbstractWMFReader as follows:

public abstract class AbstractWMFReader {

    // todo should be able to run in headless environment - as is written, will
throw exception during init                                                     
    public static final float PIXEL_PER_INCH =
Toolkit.getDefaultToolkit().getScreenResolution();
    public static final float MM_PER_PIXEL = 25.4f /
Toolkit.getDefaultToolkit().getScreenResolution();

    ...
}

The calls to getScreenResolution() throw a HeadlessException.

Regards,
Glenn

-- 
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]

Reply via email to