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

Null Pointer Exception (when a table cloned due to a retrieve-marker operation)

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 0.92
    • Fix Version/s: None
    • Component/s: renderer/pdf
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: PC
    • External issue ID:
      39560

      Description

      I got a NPE rendering PDF documents. There are no other messages! Any idea?

      Regards,

      Joachim

      6359 [WT4] WARN Converter - Converter.run: Retrying FO --> PDF in thread 4
      java.lang.NullPointerException
      at org.apache.fop.fo.flow.TableRow.addChildNode(TableRow.java:193)
      at org.apache.fop.fo.FONode.clone(FONode.java:83)
      at org.apache.fop.fo.FObj.clone(FObj.java:96)
      at org.apache.fop.fo.flow.RetrieveMarker.cloneSubtree(RetrieveMarker.java:143)
      at org.apache.fop.fo.flow.RetrieveMarker.cloneSubtree(RetrieveMarker.java:145)
      at org.apache.fop.fo.flow.RetrieveMarker.cloneSubtree(RetrieveMarker.java:145)
      at org.apache.fop.fo.flow.RetrieveMarker.cloneSubtree(RetrieveMarker.java:145)
      at org.apache.fop.fo.flow.RetrieveMarker.cloneFromMarker(RetrieveMarker.java:163)
      at org.apache.fop.fo.flow.RetrieveMarker.bindMarker(RetrieveMarker.java:214)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager.resolveRetrieveMarker(PageSequenceLayoutManager.java:653)
      at
      org.apache.fop.layoutmgr.AbstractLayoutManager.createChildLMs(AbstractLayoutManager.java:247)
      at
      org.apache.fop.layoutmgr.BlockLayoutManager$ProxyLMiter.createNextChildLMs(BlockLayoutManager.java:146)
      at
      org.apache.fop.layoutmgr.BlockLayoutManager$ProxyLMiter.hasNext(BlockLayoutManager.java:139)
      at
      org.apache.fop.layoutmgr.BlockLayoutManager.createNextChildLMs(BlockLayoutManager.java:159)
      at org.apache.fop.layoutmgr.LMiter.hasNext(LMiter.java:39)
      at
      org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:107)
      at
      org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:258)
      at
      org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
      at
      org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:160)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:467)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:237)
      at
      org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:176)
      at
      org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:233)
      at
      org.apache.fop.layoutmgr.StaticContentLayoutManager$StaticContentBreaker.getNextKnuthElements(StaticContentLayoutManager.java:306)
      at
      org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:502)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:252)
      at
      org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout(StaticContentLayoutManager.java:230)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion(PageSequenceLayoutManager.java:688)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:695)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager.makeNewPage(PageSequenceLayoutManager.java:660)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager.handleBreakTrait(PageSequenceLayoutManager.java:729)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager.access$100(PageSequenceLayoutManager.java:57)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.startPart(PageSequenceLayoutManager.java:467)
      at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:370)
      at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:321)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhase3(PageSequenceLayoutManager.java:331)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:296)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:220)
      at
      org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:152)
      at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:320)
      at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:147)
      at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:357)
      at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:193)
      at
      org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1050)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      at
      org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
      Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
      Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at
      org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:452)
      at Converter.run(Converter.java:284)

        Attachments

        1. output.fo
          67 kB
          Joachim Unger

          Activity

            People

            • Assignee:
              fop-dev@xmlgraphics.apache.org fop-dev
              Reporter:
              joachim.unger@softwareag.com Joachim Unger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: