xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50196] Padding-left ignored inside repeated table header
Date Sun, 29 May 2011 15:59:23 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50196

--- Comment #12 from Matthias Reischenbacher <matthias8283@gmx.at> 2011-05-29 15:59:23
UTC ---
(In reply to comment #11)
> (In reply to comment #10)
> > I ran it against the trunk as the patch has been applied after the release of
> > version 1.0.
> 
> Aaaaah... *blush*
> My mistake. I was still checking the test you sent earlier, instead of the
> latest one. The most recent one indeed passes.
> 
> However, the reason this bug report was still left open, is that we did not
> have a test for that latest small patch. Whether I apply that patch or not, the
> test still passes, so it seems like it is not exactly what we were looking for,
> unfortunately... :(

In order to reproduce the exception mentioned in comment 6 you have to svn
update fop trunk to revision 1052560 and run the additional testcase I'm
attaching.
With revision 1052561 this exception doesn't occur anymore because KnuthElement
Positions are not unwrapped and rewrapped anymore (due to hyphenation) and this
has the effect that the positions index is never -1 (at least for the positions
iterated by InlineLayoutManger).
Since this error only occurred when hyphenation is active, it's actual a
hyphenation test case.

That's the stack trace of the exception:

java.lang.IllegalArgumentException: Only non-null Positions with an index can
be checked
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:177)
        at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: java.lang.IllegalArgumentException: Only non-null Positions with an
index can be checked
        at
org.apache.fop.layoutmgr.AbstractLayoutManager.verifyNonNullPosition(AbstractLayoutManager.java:322)
        at
org.apache.fop.layoutmgr.AbstractLayoutManager.isFirst(AbstractLayoutManager.java:334)
        at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.addAreas(InlineLayoutManager.java:431)
        at
org.apache.fop.layoutmgr.inline.LineLayoutManager.addInlineArea(LineLayoutManager.java:1517)
        at
org.apache.fop.layoutmgr.inline.LineLayoutManager.addAreas(LineLayoutManager.java:1417)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
        at
org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:124)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:351)
        at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:286)
        at
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:675)
        at
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:546)
        at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:314)
        at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:499)
        at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
        at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
        at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
        at org.apache.xerces.xinclude.XIncludeHandler.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:484)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
        ... 3 more

---------

java.lang.IllegalArgumentException: Only non-null Positions with an index can
be checked
        at
org.apache.fop.layoutmgr.AbstractLayoutManager.verifyNonNullPosition(AbstractLayoutManager.java:322)
        at
org.apache.fop.layoutmgr.AbstractLayoutManager.isFirst(AbstractLayoutManager.java:334)
        at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.addAreas(InlineLayoutManager.java:431)
        at
org.apache.fop.layoutmgr.inline.LineLayoutManager.addInlineArea(LineLayoutManager.java:1517)
        at
org.apache.fop.layoutmgr.inline.LineLayoutManager.addAreas(LineLayoutManager.java:1417)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
        at
org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:124)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:351)
        at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:286)
        at
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:675)
        at
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:546)
        at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:314)
        at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:499)
        at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
        at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
        at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
        at org.apache.xerces.xinclude.XIncludeHandler.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:484)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:177)
        at org.apache.fop.cli.Main.main(Main.java:208)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message