Re: Réf. : RE: mif generation
Is that really the full stacktrace? If yes, your stacktrace indicates a problem within Xalan, but I don't see why the PDF generation works, then. So I don't have an idea. The only thing you can do is comment out portions of your XSL to see if the error goes away. That could help you gradually narrow down the culprit. Or try another Xalan version. If you're working with JDK 1.4.* you will need to deal with the endorsement stuff: http://xml.apache.org/xalan-j/faq.html#faq-N100CB Good luck! On 06.05.2003 09:01:09 stephane.peyronny wrote: > 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) > > I really don't know where the error come from. > ??? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : RE: mif generation
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mif generation
Jeremias Maerki wrote: > Looking at the source code of MIFDocument.java (method curPara()) > there's likely to be an IndexOutOfBoundsException if paras (an ArrayList) > has zero elements. There's a check needed. Since I fear we have no > active committers who know MIF well enough (and have spare time), I > suggest you try to fix the bug yourself. This echoes a thought that I had over the weekend while playing with the MIF and RTF renderers. In most important respects except for layout, the redesign (trunk) code in FOP is better than the maintenance code from which releases have been created. Since MIF and RTF don't use layout, the trunk code for those renderers should theoretically be better than, or at least as good as the maintenance branch. I mention this because 1) efforts on fixing the bug might be more productive in the trunk code, and 2) there may be a developer out there who would jump in and help get the MIF or RTF renderers working better, but they are frozen because of the redesign effort. Please don't be. The redesign should not affect these renderers, and it would be great to have some new developers take an interest in them. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mif generation
Disclaimer: I'm not familiar with the MIF format. I can reproduce what you said. Here's the exception: > 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) Looking at the source code of MIFDocument.java (method curPara()) there's likely to be an IndexOutOfBoundsException if paras (an ArrayList) has zero elements. There's a check needed. Since I fear we have no active committers who know MIF well enough (and have spare time), I suggest you try to fix the bug yourself. On 05.05.2003 12:40:12 stephane.peyronny wrote: > I need to generate mif files. > I run my script and I always got a JavaNullPointerException when the file I > want to convert contains tables. > > Could someone help me? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mif generation
Title: RE: mif generation Stephane: You'll have to be a little more specific. You might want to post the stack trace, if there is one. You have to narrow down where the error is occurring. Try commenting out certain sections of your style sheet, to see if it is indeed you table causing the problem. Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 05, 2003 7:40 AM To: [EMAIL PROTECTED] Subject: mif generation Hello, I need to generate mif files. I run my script and I always got a JavaNullPointerException when the file I want to convert contains tables. Could someone help me? S. Peyronny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mif generation
Hello, I need to generate mif files. I run my script and I always got a JavaNullPointerException when the file I want to convert contains tables. Could someone help me? S. Peyronny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]