Created attachment 24203 [details] fo file and images folder I use fop tool version 0.95 to convert fo file into pdf file, but I got many warning and an error : Exception: java.lang.NullPointerException when unsing fop The example.fo file is attached to this bug report command-line is: fop "example.fo" "example.pdf" error and warning are: 3 sept. 2009 15:10:15 org.apache.fop.fonts.FontInfo notifyFontReplacement ATTENTION: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal, 400'. 3 sept. 2009 15:10:15 org.apache.fop.fonts.FontInfo notifyFontReplacement ATTENTION: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDing bats,normal,400'. 3 sept. 2009 15:10:15 org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBrea kingAlgorithm updateData2 ATTENTION: Line 1 of a paragraph overflows the available area by more than 50 po ints. (fo:block, location: 508/25) 3 sept. 2009 15:10:15 org.apache.fop.fonts.FontInfo notifyFontReplacement ATTENTION: Font 'Arial,normal,700' not found. Substituting with 'any,normal,700' . 3 sept. 2009 15:10:15 org.apache.fop.cli.Main startFOP GRAVE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) --------- java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChan ges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoin ts(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreaking Points(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(Li neLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElement s(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL ayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker .java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBre aker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.jav a:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag eSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j ava:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java :123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde r.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans formerIdentityImpl.java:1101) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n 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.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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour ce) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:484) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197)
I tested in trunk and this NullPoiterException is fixed in the trunk.
Closing this bug as the issue does no longer appear in Trunk. Feel free to re-open it if you can reproduce it with the Trunk. (To download and build a version of the Trunk, see here: http://xmlgraphics.apache.org/fop/download.html#source http://xmlgraphics.apache.org/fop/trunk/compiling.html ) Vincent
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed