You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2010/09/07 11:39:09 UTC
DO NOT REPLY [Bug 42408] [PATCH] Headless problem in transcoders
https://issues.apache.org/bugzilla/show_bug.cgi?id=42408
--- Comment #13 from Glenn Adams <gl...@skynav.com> 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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org