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 Finn Bock <bc...@worldonline.dk> on 2005/09/01 14:45:30 UTC

Exceptions

Hi

Running the NIST test suite I get 2 table related exceptions and 1 
KnuthElement related exception:


java.lang.NullPointerException
org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:246)
org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:230)
org.apache.fop.layoutmgr.table.TableRowIterator.resolveStartEndBorders(TableRowIterator.java:480)
org.apache.fop.layoutmgr.table.TableRowIterator.buildGridRow(TableRowIterator.java:419)
org.apache.fop.layoutmgr.table.TableRowIterator.prefetchNext(TableRowIterator.java:294)

<?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 master-name="test-page-master" 
margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in" 
margin-left="1.0in" page-width="8.5in" page-height="11in">
<fo:region-body margin-bottom="1.0in" margin-right="1.0in" 
margin-top="0.2in" margin-left="1.0in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test-page-master">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="0.4in" space-after.maximum="0.4in">
    This test evaluates the "border-before-color" property on a 
table-body FO. The "border-before-color" property (see red border) for 
the next table-body FO was set to red.
   </fo:block>
<fo:table border-collapse="collapse-with-precedence">
<fo:table-body border-before-style="solid" border-before-color="red">
<fo:table-row>
<fo:table-cell>
<fo:block>
        The border above should be red.
       </fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>





java.lang.NullPointerException
org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.addAreasForCell(TableContentLayoutManager.java:885)
org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.addAreasAndFlushRow(TableContentLayoutManager.java:864)
org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:642)
org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:296)

<?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 master-name="test-page-master" 
margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in" 
margin-left="1.0in" page-width="8.5in" page-height="11in">
<fo:region-body margin-bottom="1.0in" margin-right="1.0in" 
margin-top="0.2in" margin-left="1.0in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test-page-master">
<fo:flow flow-name="xsl-region-body">
<fo:table>
<fo:table-column column-width="1.0in"/>
<fo:table-column column-width="1.0in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell background-color="red">
<fo:block>This cell spans one row</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-rows-spanned="2" background-color="aqua">
<fo:block>This cells spans two rows</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell background-color="aqua">
<fo:block/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>





java.lang.ClassCastException
org.apache.fop.layoutmgr.inline.ContentLayoutManager.getNextKnuthElements(ContentLayoutManager.java:282)
org.apache.fop.layoutmgr.inline.LeaderLayoutManager.getLeaderInlineArea(LeaderLayoutManager.java:150)
org.apache.fop.layoutmgr.inline.LeaderLayoutManager.get(LeaderLayoutManager.java:77)
org.apache.fop.layoutmgr.inline.LeaderLayoutManager.getNextKnuthElements(LeaderLayoutManager.java:255)

<?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 master-name="test-page-master" 
margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in" 
margin-left="1.0in" page-width="8.5in" page-height="11in">
<fo:region-body margin-bottom="1.0in" margin-right="1.0in" 
margin-top="0.2in" margin-left="1.0in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test-page-master">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="0.4in" space-after.maximum="0.4in">The 
"leader-pattern" property of the "leader" FO below was set to 
"use-content"(set to "*").</fo:block>
<fo:block text-align="start">Entry 1<fo:leader 
leader-pattern="use-content" leader-length.optimum="1.0in" 
leader-length.maximum="1.0in">*</fo:leader>Page 1</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>




Re: Exceptions

Posted by Simon Pepping <sp...@leverkruid.nl>.
Today, 15 November 2005, revision 344223 only gives an exception on
the first test file.

Simon

On Thu, Sep 01, 2005 at 02:45:30PM +0200, Finn Bock wrote:
> Hi
> 
> Running the NIST test suite I get 2 table related exceptions and 1 
> KnuthElement related exception:
> 
> 
> java.lang.NullPointerException
> org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:246)
> org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:230)
> org.apache.fop.layoutmgr.table.TableRowIterator.resolveStartEndBorders(TableRowIterator.java:480)
> org.apache.fop.layoutmgr.table.TableRowIterator.buildGridRow(TableRowIterator.java:419)
> org.apache.fop.layoutmgr.table.TableRowIterator.prefetchNext(TableRowIterator.java:294)
> 
> <?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 master-name="test-page-master" 
> margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in" 
> margin-left="1.0in" page-width="8.5in" page-height="11in">
> <fo:region-body margin-bottom="1.0in" margin-right="1.0in" 
> margin-top="0.2in" margin-left="1.0in"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="test-page-master">
> <fo:flow flow-name="xsl-region-body">
> <fo:block space-after.optimum="0.4in" space-after.maximum="0.4in">
>    This test evaluates the "border-before-color" property on a 
> table-body FO. The "border-before-color" property (see red border) for 
> the next table-body FO was set to red.
>   </fo:block>
> <fo:table border-collapse="collapse-with-precedence">
> <fo:table-body border-before-style="solid" border-before-color="red">
> <fo:table-row>
> <fo:table-cell>
> <fo:block>
>        The border above should be red.
>       </fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>

-- 
Simon Pepping
home page: http://www.leverkruid.nl


Re: Exceptions

Posted by Finn Bock <bc...@worldonline.dk>.
[Jeremias]

> No surprise, actually. The tables all use the collapsing border model.
> But tell me, have they updated the NIST test suite for XSL Rec 1.0? I
> remember that at a stand-still in working-draft stage (master-name
> instead of master-reference).

Years back, when we last talked about the NIST suite, the author of the 
suite gave a link to a new version of the suite.

Last I checked, it was the old version that was available on their webpage.

regards,
finn

Re: Exceptions

Posted by Jeremias Maerki <de...@greenmail.ch>.
No surprise, actually. The tables all use the collapsing border model.
But tell me, have they updated the NIST test suite for XSL Rec 1.0? I
remember that at a stand-still in working-draft stage (master-name
instead of master-reference).

On 01.09.2005 14:45:30 Finn Bock wrote:
> Hi
> 
> Running the NIST test suite I get 2 table related exceptions and 1 
> KnuthElement related exception:
> 
> 
> java.lang.NullPointerException
> org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:246)
> org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:230)
> org.apache.fop.layoutmgr.table.TableRowIterator.resolveStartEndBorders(TableRowIterator.java:480)
> org.apache.fop.layoutmgr.table.TableRowIterator.buildGridRow(TableRowIterator.java:419)
> org.apache.fop.layoutmgr.table.TableRowIterator.prefetchNext(TableRowIterator.java:294)
> 
> <?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 master-name="test-page-master" 
> margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in" 
> margin-left="1.0in" page-width="8.5in" page-height="11in">
> <fo:region-body margin-bottom="1.0in" margin-right="1.0in" 
> margin-top="0.2in" margin-left="1.0in"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="test-page-master">
> <fo:flow flow-name="xsl-region-body">
> <fo:block space-after.optimum="0.4in" space-after.maximum="0.4in">
>     This test evaluates the "border-before-color" property on a 
> table-body FO. The "border-before-color" property (see red border) for 
> the next table-body FO was set to red.
>    </fo:block>
> <fo:table border-collapse="collapse-with-precedence">
> <fo:table-body border-before-style="solid" border-before-color="red">
> <fo:table-row>
> <fo:table-cell>
> <fo:block>
>         The border above should be red.
>        </fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> 
> 
> 
> 
> 
> java.lang.NullPointerException
> org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.addAreasForCell(TableContentLayoutManager.java:885)
> org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.addAreasAndFlushRow(TableContentLayoutManager.java:864)
> org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:642)
> org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:296)
> 
> <?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 master-name="test-page-master" 
> margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in" 
> margin-left="1.0in" page-width="8.5in" page-height="11in">
> <fo:region-body margin-bottom="1.0in" margin-right="1.0in" 
> margin-top="0.2in" margin-left="1.0in"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="test-page-master">
> <fo:flow flow-name="xsl-region-body">
> <fo:table>
> <fo:table-column column-width="1.0in"/>
> <fo:table-column column-width="1.0in"/>
> <fo:table-body>
> <fo:table-row>
> <fo:table-cell background-color="red">
> <fo:block>This cell spans one row</fo:block>
> </fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell number-rows-spanned="2" background-color="aqua">
> <fo:block>This cells spans two rows</fo:block>
> </fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell background-color="aqua">
> <fo:block/>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> 
> 
> 
> 
> 
> java.lang.ClassCastException
> org.apache.fop.layoutmgr.inline.ContentLayoutManager.getNextKnuthElements(ContentLayoutManager.java:282)
> org.apache.fop.layoutmgr.inline.LeaderLayoutManager.getLeaderInlineArea(LeaderLayoutManager.java:150)
> org.apache.fop.layoutmgr.inline.LeaderLayoutManager.get(LeaderLayoutManager.java:77)
> org.apache.fop.layoutmgr.inline.LeaderLayoutManager.getNextKnuthElements(LeaderLayoutManager.java:255)
> 
> <?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 master-name="test-page-master" 
> margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in" 
> margin-left="1.0in" page-width="8.5in" page-height="11in">
> <fo:region-body margin-bottom="1.0in" margin-right="1.0in" 
> margin-top="0.2in" margin-left="1.0in"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="test-page-master">
> <fo:flow flow-name="xsl-region-body">
> <fo:block space-after.optimum="0.4in" space-after.maximum="0.4in">The 
> "leader-pattern" property of the "leader" FO below was set to 
> "use-content"(set to "*").</fo:block>
> <fo:block text-align="start">Entry 1<fo:leader 
> leader-pattern="use-content" leader-length.optimum="1.0in" 
> leader-length.maximum="1.0in">*</fo:leader>Page 1</fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> 
> 



Jeremias Maerki