Bug 43803 - IndexOutOfBoundsException error
Summary: IndexOutOfBoundsException error
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.94
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 19:32 UTC by Jon Wong
Modified: 2012-04-01 06:35 UTC (History)
0 users



Attachments
Small fo file that produces the error (18.14 KB, text/plain)
2007-11-06 19:33 UTC, Jon Wong
Details
An even smaller fo file to produce error (1.81 KB, text/plain)
2007-11-06 20:20 UTC, Jon Wong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Wong 2007-11-06 19:32:53 UTC
Small fo file will be attached. Using default fop.xconf .

Exception:

Nov 7, 2007 11:21:37 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	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)
Comment 1 Jon Wong 2007-11-06 19:33:54 UTC
Created attachment 21093 [details]
Small fo file that produces the error
Comment 2 Jon Wong 2007-11-06 19:37:50 UTC
Full error log:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.iterateAndPaintPositions(TableContentLayoutManager.java:727)
	at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:694)
	at
org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:334)
	at
org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:393)
	at org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:118)
	at org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:297)
	at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:241)
	at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:507)
	at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:370)
	at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:262)
	at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:345)
	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)
Comment 3 Jon Wong 2007-11-06 20:20:19 UTC
Created attachment 21094 [details]
An even smaller fo file to produce error

Note line 33, "<fo:table-cell padding-bottom=".5em"/>". If I simply add
"<fo:block>something</fo:block>" into that table cell, it all works fine.
Comment 4 Vincent Hennebert 2007-11-07 01:57:30 UTC
Your FO file isn't valid, an fo:table-cell must not be empty. Launching FOP 0.94
on it gave me a ValidationException, as expected. Are you sure you uploaded the
right file(s)?
OTOH, this may very probably be a manifestation of bug #43766.
I'm closing this bug, please re-open it if you feel necessary.

Vincent
Comment 5 Jeremias Maerki 2007-11-07 02:05:44 UTC
Well, FOP versions until 0.93 nicely handled empty table-cells if relaxed
validation was enabled. I'd love to see that restored.
Comment 6 Vincent Hennebert 2007-11-20 10:48:22 UTC
Sorry, I completely forgot about that relaxed validation mode. This should be
fixed in revision 596776.
Comment 7 Glenn Adams 2012-04-01 06:35:53 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed