Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2129

-awt command line option broken throwing HeadlessException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.5
    • None
    • renderer/awt
    • None
    • Operating System: All
      Platform: All
    • 53887

    Description

      The AWTRenderer won't appear from the command line throwing a HeadlessException

      >fop -fo examples\fo\basic\normal.fo -awt

      18-Sep-2012 14:00:42 org.apache.fop.cli.Main startFOP
      SEVERE: Exception
      java.awt.HeadlessException
      at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
      at java.awt.Window.<init>(Unknown Source)
      at java.awt.Frame.<init>(Unknown Source)
      at java.awt.Frame.<init>(Unknown Source)
      at javax.swing.JFrame.<init>(Unknown Source)
      at org.apache.fop.render.awt.viewer.PreviewDialog.<init>(PreviewDialog.java:110)
      at org.apache.fop.render.awt.viewer.PreviewDialog.createPreviewDialog(PreviewDialog.java:275)
      at org.apache.fop.render.awt.AWTRenderer.<init>(AWTRenderer.java:99)
      at org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:211)
      at org.apache.fop.cli.Main.startFOP(Main.java:161)
      at org.apache.fop.cli.Main.main(Main.java:208)

      Attachments

        Issue Links

          Activity

            People

              fop-dev@xmlgraphics.apache.org fop-dev
              apache@hummeling.com Ralph Hummeling
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: