Bug 32338

Summary: Rendering fails with IndexOutOfBoundsException in CompoundPropertyMaker
Product: Fop - Now in Jira Reporter: Max Berger <max>
Component: page-master/layoutAssignee: fop-dev
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: fo file that fails rendering

Description Max Berger 2004-11-22 00:20:34 UTC
Hi developers,

here's another indexOutBoundsException, this time in a different class. I'll
attach the .fo file. 

The problem seems to be my list-item, where i have a lot of space-before and
after set:
<fo:list-item space-after.maximum="10pt" space-after.optimum="8pt" space-after.m
inimum="6pt" space-before.maximum="10pt" space-before.optimum="8pt" space-before
.minumum="6pt">

if this is replaced by <fo:list-item> it works fine.

(cvs checkout from today (11/21), jdk 1.4)

---
Building formatting object tree
Exception
java.lang.ArrayIndexOutOfBoundsException: -2
        at org.apache.fop.apps.InputHandler.render(InputHandler.java:123)
        at org.apache.fop.apps.Fop.main(Fop.java:153)

---------

java.lang.ArrayIndexOutOfBoundsException: -2
        at org.apache.fop.fo.properties.CompoundPropertyMaker.getSubpropMaker(Co
mpoundPropertyMaker.java:102)
        at org.apache.fop.fo.properties.CompoundPropertyMaker.make(CompoundPrope
rtyMaker.java:238)
        at org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyLis
t.java:311)
        at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:
262)
        at org.apache.fop.fo.FObj.processNode(FObj.java:94)
        at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:266)
        at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Unk
nown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.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(Unknow
n Source)
        at org.apache.fop.apps.InputHandler.render(InputHandler.java:120)
        at org.apache.fop.apps.Fop.main(Fop.java:153)
---
Comment 1 Max Berger 2004-11-22 00:21:26 UTC
Created attachment 13513 [details]
fo file that fails rendering
Comment 2 Finn Bock 2004-11-22 09:00:06 UTC
The property name 'space-before.minumum' is invalid. I've added a check for
unknown subproperty names and a message to the error log.
Comment 3 Glenn Adams 2012-04-01 06:40:02 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed