DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10287>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10287 fop 0.20.4RC is unable to run with Aelfred xml parser Summary: fop 0.20.4RC is unable to run with Aelfred xml parser Product: Fop Version: 0.20.4 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Running fop 0.20.4RC with saxon.jar (instead of xerces+xalan) I got exception: D:\fop\fop-0.20.4rc>java -cp build\fop.jar;lib\saxon.jar;lib\batik.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop table.fo -pdf table.pdf -c conf/userconfig.xml -d [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: table.fo [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: table.pdf [DEBUG] OPTIONS [DEBUG] user configuration file: conf\userconfig.xml [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [DEBUG] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser [DEBUG] reading user configuration file [DEBUG] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser [DEBUG] base directory: file:/D:/fop/fop-0.20.4rc/ [INFO] FOP 0.20.4rc [DEBUG] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser [INFO] building formatting object tree [DEBUG] setting up fonts [INFO] [1] [DEBUG] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser [ERROR] Failed to read font metrics file /d:/fop/fop-0.20.3/fonts/arial.xml : no more input [INFO] Parsing of document complete, stopping renderer [ERROR] null org.apache.fop.apps.FOPException at org.apache.fop.apps.CommandLineStarter.run(Unknown Source) at org.apache.fop.apps.Fop.main(Unknown Source) --------- java.lang.NullPointerException at org.apache.fop.render.pdf.fonts.LazyFont.fontName(Unknown Source) at org.apache.fop.render.pdf.FontSetup.addToResources(Unknown Source) at org.apache.fop.render.pdf.PDFRenderer.stopRenderer(Unknown Source) at org.apache.fop.apps.StreamRenderer.stopRenderer(Unknown Source) at org.apache.fop.fo.FOTreeBuilder.endDocument(Unknown Source) at com.icl.saxon.aelfred.SAXDriver.parse(SAXDriver.java:334) 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) Font definition is <font metrics-file="file:///d:/fop/fop-0.20.3/fonts/arial.xml" kerning="yes" embed-file="d:/fop/fop-0.20.3/fonts/ttf/arial.ttf"> I believe the problem is due to the fact that metricsFile is stored in file name form, rather than URI, and then FontReader is trying to parse metrics file using the file name, which is not of course valid URI. Well, it works in xerces, but Aelfred is more picky and expects URI according to sax specification. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]