You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Rainer Garus <ra...@arcor.de> on 2003/03/08 23:49:26 UTC

Nullpointer exception in InlineStackingLayoutManager

Since several weeks there is a nullpointer exception in InlineStackingLayoutManager.
The appended fo file is the shortest example I can construct to reproduce the error
(using Java 1.3.1_04 on Linux and snapshot xml-fop_20030308173134.tar.gz).

Remarks:

Removing text-align"justify" there is no exception
Removing hyphenate="true" language="de" there is no exception
Removing <fo:inline> and </fo:inline> there is no exception

There is also no exception in the following case:
<fo:inline>
Beantwoord deze vraag met ja, als u met de Cancel bewerking wilt doorgaan, waarop de functie anders
</fo:inline>

Regards
Rainer Garus




<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
   <fo:simple-page-master margin-right="25.4mm" margin-left="25.4mm"
                          page-height="297mm" page-width="210mm" master-name="simple">
     <fo:region-body/>
   </fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">


<fo:block text-align="justify" start-indent="1.3cm"
           font-size="12pt" font-family="Times" hyphenate="true" language="de">
<fo:inline>
Beantwoord deze vraag met ja, als u met de Cancel bewerking wilt doorgaan, waarop de
functie anders
</fo:inline>
</fo:block>

</fo:flow>
</fo:page-sequence>
</fo:root>



[INFO] 1.0dev
[DEBUG] Building formatting object tree
[DEBUG] Current heap size: 720Kb
[DEBUG] Word to hyphenate: functie
Exception occured with a null error message
org.apache.fop.apps.FOPException
         at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:117)
         at org.apache.fop.apps.Fop.main(Fop.java:68)

---------

java.lang.NullPointerException
         at org.apache.fop.layoutmgr.InlineStackingLayoutManager.initChildLC(InlineStackingLayoutManager.java:351)
         at org.apache.fop.layoutmgr.InlineStackingLayoutManager.getNextBreakPoss(InlineStackingLayoutManager.java:312)
         at org.apache.fop.layoutmgr.LineLayoutManager.getNextBreakPoss(LineLayoutManager.java:211)
         at org.apache.fop.layoutmgr.BlockLayoutManager.getNextBreakPoss(BlockLayoutManager.java:204)
         at org.apache.fop.layoutmgr.FlowLayoutManager.getNextBreakPoss(FlowLayoutManager.java:110)
         at org.apache.fop.layoutmgr.PageLayoutManager.getNextBreakPoss(PageLayoutManager.java:226)
         at org.apache.fop.layoutmgr.PageLayoutManager.doLayout(PageLayoutManager.java:193)
         at org.apache.fop.layoutmgr.PageLayoutManager.run(PageLayoutManager.java:173)
         at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:390)
         at org.apache.fop.apps.LayoutHandler.endPageSequence(LayoutHandler.java:268)
         at org.apache.fop.fo.pagination.PageSequence.end(PageSequence.java:351)
         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
         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.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.fop.apps.Driver.render(Driver.java:587)
         at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:108)
         at org.apache.fop.apps.Fop.main(Fop.java:68)