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

Can no longer get -awt (FOP viewer) to work

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.1
    • None
    • renderer/awt
    • None
    • Windows 7, Windows 8.1

    Description

      Calling

      fop.bat -fo tmp.fo -awt

      results in

      "SEVERE: Exception
      java.awt.HeadlessException"

      due to

      -Djava.awt.headless=true

      in fop.bat which is there since FOP 1.1. Removing this at least opens the viewer, but no document is displayed, and I get

      "org.apache.fop.apps.FOPException: Requested page number is out of range: 0; only 0 page(s) available."

      This occurs for any XML-FO file; an example is attached.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            nick.heyworth@altova.com nick.heyworth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment