Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.8
-
None
-
Operating System: All
Platform: Other
Description
Transcoders have a problem with headless mode. The reason is they invoke
Toolkit.getDefaultToolkit().getScreenResolution() that throws
java.awt.HeadlessException (a RuntimeException) which then trips up the application.
Calls to the above method must catch the exception and assign a default screen
resolution, 100 DPI, for instance. I guess a serious solution would take a
parameter.
The following code contains such calls:
transcoder/ToSVGAbstractTranscoder.java
transcoder/wmf/tosvg/AbstractWMFReader.java
transcoder/wmf/tosvg/WMFPainter.java
Running transcoders in headless mode is very common.