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

NoSuchElementException in LMiter.next() with absolute positioned block-container

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • layout/block
    • None
    • reproduceable on Linux and Windows

    Description

      We recently updated from FOP 1.0 to FOP 2.0.

      Upon Tests, some old templates run into an java.util.NoSuchElementException at org.apache.fop.layoutmgr.LMiter.next(LMiter.java:69)

      We found out that an absolute positioned block-container, like this, was the problem:

      <fo:block-container position="absolute"
      left="0cm"
      top="0cm"
      right="0cm"
      bottom="0cm">

      When removing the positioning, the template continues to perform as expected.

      Since this problem was not occuring in FOP 1.0 and it seems a bit odd to run into a "NoSuchElementException" on an iterator that is checked for length before the next Element is fetched, I filled this Bug report.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wahrendorff Tim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: