Bug 11905 - Fo file throws ArrayIndexOutOfBoundsException
Summary: Fo file throws ArrayIndexOutOfBoundsException
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.4
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 21806 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-21 16:49 UTC by Guillaume Cot
Modified: 2012-04-01 13:54 UTC (History)
1 user (show)



Attachments
Output of ant (9.56 KB, text/plain)
2002-08-21 16:50 UTC, Guillaume Cot
Details
The fo file that cause the exception (10.25 KB, text/xml)
2002-08-21 16:53 UTC, Guillaume Cot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Cot 2002-08-21 16:49:49 UTC
Running with the following file, I got the following exception :

     [java] java.lang.ArrayIndexOutOfBoundsException
     [java] 	at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(Unknown
Source)
     [java] 	at org.apache.fop.fo.flow.TableRow.initCellArray(Unknown Source)
     [java] 	at org.apache.fop.fo.flow.TableRow.layout(Unknown Source)
     [java] 	at org.apache.fop.fo.flow.TableBody.layout(Unknown Source)
     [java] 	at org.apache.fop.fo.flow.Table.layout(Unknown Source)
     [java] 	at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
     [java] 	at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
     [java] 	at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
     [java] 	at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
     [java] 	at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
     [java] 	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
     [java] 	at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Unknown
Source)
     [java] 	at org.apache.xerces.impl.XMLNamespaceBinder.endElement(Unknown Source)
     [java] 	at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
     [java] 	at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
     [java] 	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(Unknown
Source)
     [java] 	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
     [java] 	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
     [java] 	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
     [java] 	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
     [java] 	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
     [java] 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [java] 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     [java] 	at org.apache.fop.apps.Driver.render(Unknown Source)
     [java] 	at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
     [java] 	at org.apache.fop.apps.Fop.main(Unknown Source)
Comment 1 Guillaume Cot 2002-08-21 16:50:44 UTC
Created attachment 2795 [details]
Output of ant
Comment 2 Guillaume Cot 2002-08-21 16:53:44 UTC
Created attachment 2797 [details]
The fo file that cause the exception
Comment 3 David Holscher 2003-07-22 12:56:46 UTC
I get an identical exception. It appears to be related to setting the number-
rows-spanned property. 
Comment 4 David Holscher 2003-07-22 13:42:02 UTC
More information - I only get the exception when using Driver.getContentHandler
() as the target of Transformer.transform. If I save the output of the 
transformer to a byte stream and then feed a byte stream into the Driver all is 
well.
Comment 5 J.Pietschmann 2003-07-22 14:34:25 UTC
The second table has 9 rows, the last row has 8 cells, two of which span 3 and 2
columns, respectively. FOP can't deal graciously with the second last cell which
overflows the available columns. I'll put a slightly better error message in,
but processing will terminate nevertheless.
Correct the source.
Comment 6 J.Pietschmann 2003-07-28 06:38:01 UTC
*** Bug 21806 has been marked as a duplicate of this bug. ***
Comment 7 Glenn Adams 2012-04-01 13:54:53 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs