Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5181

pdfbox-app doesn't run in a headless environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0 PDFBox
    • 3.0.0 PDFBox
    • Utilities
    • None

    Description

      Follow-up to PDFBOX-2602

      ...
      Caused by: java.awt.HeadlessException:
      No X11 DISPLAY variable was set, but this program performed an operation which requires it.
              at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
              at java.desktop/java.awt.Window.<init>(Window.java:548)
              at java.desktop/java.awt.Frame.<init>(Frame.java:423)
              at java.desktop/java.awt.Frame.<init>(Frame.java:388)
              at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
              at org.apache.pdfbox.debugger.PDFDebugger.<init>(PDFDebugger.java:208)
              ... 18 more
      

      PDFDebugger it itself an awt object (a JFrame).

      We may also run into problems with tools that use awt, e.g. PDFToImage.

      Attachments

        Issue Links

          Activity

            People

              msahyoun Maruan Sahyoun
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: