Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-762

WMFTranscoder can't be used in a headless environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 1.7
    • None
    • Utilities
    • None
    • Operating System: Linux
      Platform: Other

    Description

      If you use the WMFTranscoder in a headless environment, then you get an
      exception because WMFTranscoder inherits from ToSVGAbstractTranscoder and
      ToSVGAbstractTranscoder tries to get the screen resolution, which is not available.

      Caused by: java.awt.HeadlessException
      at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:203)
      at
      org.apache.batik.transcoder.ToSVGAbstractTranscoder.<clinit>(ToSVGAbstractTranscoder.java:96)
      ... 20 more

      Attachments

        Issue Links

          Activity

            People

              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              stephan Stephan Michels
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: