DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42408>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42408 Summary: Headless problem in transcoders Product: Batik Version: 1.7 Platform: Other OS/Version: All Status: NEW Severity: major Priority: P2 Component: SVG Rasterizer AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] 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. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
