xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stephane.peyro...@mpsa.com
Subject Réf. : RE: mif generation
Date Tue, 06 May 2003 07:01:09 GMT

Jeremias Maerki wrote:

> java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
>         at java.util.ArrayList.RangeCheck(ArrayList.java:508)
>         at java.util.ArrayList.get(ArrayList.java:320)
>         at
org.apache.fop.mif.MIFDocument$TextFlow.curPara(MIFDocument.java:442)
>         at
org.apache.fop.mif.MIFDocument.createTable(MIFDocument.java:1089)
>         at
org.apache.fop.render.mif.MIFRenderer.renderAreaContainer(MIFRenderer.java:145)

Thanks to help me.

I generate a PDF document with a stylesheet and a xml file.
My script is :
     fop -xsl seePDF.xsl -xml test.xml -pdf result.pdf
This behaviour works without errors.

Then I take the same xsl and xml files to generate MIF document with :
     fop -xsl seePDF.xsl -xml test.xml -mif result.mif
I got this stack :

[INFO] FOP 0.20.4
[INFO] building formatting object tree
[INFO] rendering areas to MIF
[INFO] [1]
[INFO] [2]
[ERROR] java.lang.NullPointerException
org.apache.fop.apps.FOPException: java.lang.NullPointerException
        at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
        at org.apache.fop.apps.Fop.main(Unknown Source)
---------
java.lang.RuntimeException: java.lang.NullPointerException
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
        at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
        at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:715)
        at
org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder.java:704)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.java:985)
        at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:437)
        at
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1159)
        at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3204)
        at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEntityManager.java:2861)
        at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:987)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
        at
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
        at org.apache.fop.apps.Driver.render(Unknown Source)
        at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
        at org.apache.fop.apps.Fop.main(Unknown Source)

I really don't know where the error come from.
???

S. Peyronny


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message