FOP
  1. FOP
  2. FOP-1301

ClassCastException when fo:wrapper is used as a child of fo:block-container

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: unqualified
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC
    • External issue ID:
      41500

      Description

      Below please find the error trace, the same error was available using 0.92
      beta.

      Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
      org.apache.fop.layoutmgr.InlineKnuthSequence
      at
      org.apache.fop.layoutmgr.BlockStackingLayoutManager.wrapPositionElements
      (BlockStackingLayoutManager.java:1454)
      at
      org.apache.fop.layoutmgr.BlockStackingLayoutManager.wrapPositionElements
      (BlockStackingLayoutManager.java:1439)
      at
      org.apache.fop.layoutmgr.BlockContainerLayoutManager$BlockContainerBreaker.getN
      extKnuthElements(BlockContainerLayoutManager.java:612)
      at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList
      (AbstractBreaker.java:554)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
      (AbstractBreaker.java:301)
      at
      org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements
      (BlockContainerLayoutManager.java:355)
      at
      org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements
      (TableCellLayoutManager.java:168)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGr
      oup(TableContentLayoutManager.java:480)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRow
      Iterator(TableContentLayoutManager.java:243)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements
      (TableContentLayoutManager.java:183)
      at
      org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements
      (TableLayoutManager.java:229)
      at
      org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements
      (TableCellLayoutManager.java:168)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGr
      oup(TableContentLayoutManager.java:480)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRow
      Iterator(TableContentLayoutManager.java:243)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements
      (TableContentLayoutManager.java:183)
      at
      org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements
      (TableLayoutManager.java:229)
      at
      org.apache.fop.layoutmgr.StaticContentLayoutManager$StaticContentBreaker.getNex
      tKnuthElements(StaticContentLayoutManager.java:317)
      at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList
      (AbstractBreaker.java:554)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
      (AbstractBreaker.java:301)
      at org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout
      (StaticContentLayoutManager.java:239)
      at org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion
      (PageSequenceLayoutManager.java:771)
      at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage
      (PageSequenceLayoutManager.java:777)
      at org.apache.fop.layoutmgr.PageSequenceLayoutManager.makeNewPage
      (PageSequenceLayoutManager.java:741)
      at org.apache.fop.layoutmgr.PageSequenceLayoutManager.handleBreakTrait
      (PageSequenceLayoutManager.java:827)
      at org.apache.fop.layoutmgr.PageSequenceLayoutManager.access$300
      (PageSequenceLayoutManager.java:62)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.startPart
      (PageSequenceLayoutManager.java:505)
      at org.apache.fop.layoutmgr.AbstractBreaker.addAreas
      (AbstractBreaker.java:420)
      at org.apache.fop.layoutmgr.AbstractBreaker.addAreas
      (AbstractBreaker.java:370)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhase3
      (PageSequenceLayoutManager.java:369)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
      (AbstractBreaker.java:345)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
      (AbstractBreaker.java:263)
      at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout
      (PageSequenceLayoutManager.java:157)
      at org.apache.fop.area.AreaTreeHandler.endPageSequence
      (AreaTreeHandler.java:385)
      at org.apache.fop.fo.pagination.PageSequence.endOfNode
      (PageSequence.java:148)
      at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement
      (FOTreeBuilder.java:378)
      at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
      at net.sf.saxon.event.ContentHandlerProxy.endElement
      (ContentHandlerProxy.java:205)
      at net.sf.saxon.event.ProxyReceiver.endElement(ProxyReceiver.java:161)
      at net.sf.saxon.event.NamespaceReducer.endElement
      (NamespaceReducer.java:184)
      at net.sf.saxon.event.ComplexContentOutputter.endElement
      (ComplexContentOutputter.java:325)
      at net.sf.saxon.instruct.ElementCreator.processLeavingTail
      (ElementCreator.java:186)
      at net.sf.saxon.instruct.Instruction.process(Instruction.java:166)
      at net.sf.saxon.instruct.Instruction.processChildren
      (Instruction.java:208)
      at net.sf.saxon.instruct.ElementCreator.processLeavingTail
      (ElementCreator.java:183)
      at net.sf.saxon.instruct.Instruction.processChildrenLeavingTail
      (Instruction.java:269)
      at net.sf.saxon.instruct.Sequence.processLeavingTail(Sequence.java:147)
      at net.sf.saxon.instruct.Template.expand(Template.java:105)
      at
      net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail
      (CallTemplate.java:235)
      at net.sf.saxon.Controller.applyTemplates(Controller.java:284)
      at
      net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail
      (ApplyTemplates.java:143)
      at net.sf.saxon.Controller.applyTemplates(Controller.java:284)
      at net.sf.saxon.Controller.run(Controller.java:187)
      at net.sf.saxon.Controller.transformDocument(Controller.java:1536)
      at net.sf.saxon.Controller.transform(Controller.java:1342)

      1. test.fo
        60 kB
        Roberto Cisternino

        Activity

          People

          • Assignee:
            fop-dev
            Reporter:
            Roberto Cisternino
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development