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 bu...@apache.org on 2008/01/02 12:53:43 UTC

DO NOT REPLY [Bug 44160] New: - IndexOutOfBoundsException when creating pdf

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44160>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44160

           Summary: IndexOutOfBoundsException when creating pdf
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: bhaje@gmx.de


Hi,

I create a FO-file from a pretty large docbook-xml (60 pages so far)
with saxon (or xslt - doesn't matter) whith the docbook-xsl-1.71.1
stylesheets.
After that I use fop to convert it to pdf. I used 0.94 and the svn trunk
version - with both I occasionally run into the error below.

I was able to track the error down to the attached file
(http://www.nabble.com/file/p14488145/tmp_sip.xml.fo).
I tried to delete as much content as possible. If I delete any further paragraph
of the text, the error doesn't occur any more. Also if I set hyphenation to true
in my stylesheet, the error goes away.

I tried it with fop 0.94 and trunk with the same result. For some reason fop
0.92 doesn't show the error with that file, although it did before with other files.
I hope that helps somehow to find the error.

thanks Bjoern
 

> 13.12.2007 13:27:30 org.apache.fop.cli.Main startFOP
> SCHWERWIEGEND: Exception
> java.lang.IndexOutOfBoundsException: Index: 4, Size: 1
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
>         at org.apache.fop.cli.Main.main(Main.java:197)
>
> ---------
>
> java.lang.IndexOutOfBoundsException: Index: 4, Size: 1
>         at java.util.ArrayList.RangeCheck(ArrayList.java:546)
>         at java.util.ArrayList.get(ArrayList.java:321)
>         at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDemerits(PageBreakingAlgorithm.java:644)
>         at
org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(BreakingAlgorithm.java:737)
>         at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(PageBreakingAlgorithm.java:309)
>         at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:485)
>         at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:403)
>         at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:338)
>         at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
>         at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:144)
>         at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233)
>         at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)
>         at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
>         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
>         at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
>         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.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
>         at org.apache.fop.cli.Main.main(Main.java:197)

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

DO NOT REPLY [Bug 44160] - IndexOutOfBoundsException when creating pdf

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44160>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44160





------- Additional Comments From bhaje@gmx.de  2008-01-02 03:55 -------
Created an attachment (id=21337)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21337&action=view)
Test file which causes the error


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

DO NOT REPLY [Bug 44160] - IndexOutOfBoundsException when creating pdf

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44160>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44160


jeremias@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Additional Comments From jeremias@apache.org  2008-01-22 06:05 -------
Cheap fix applied: http://svn.apache.org/viewvc?rev=614201&view=rev

Not sure if it was the right thing to do but it didn't break anything but I
haven't been able to come up with a scaled-down regression test, either. So I'll
leave this open for now as a reminder. The whole thing has to do with footnotes.
Note that the error cannot be reproduced if the test file here is pretty-printed.

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