You seem to be using custom fonts, so it is difficult for me to reproduce the problem. In my own tests, everything worked fine. I suspect you are using a font which has a special encoding that is not handled properly by FOP. Are you using Type 1 fonts or TrueType fonts? Given that the error happens in SingleByteFont I assume Type 1. In that case, try the TrueType equivalents if you can get them. Otherwise, please post one of the XML font metric files you generated for your fonts.
On 12.03.2007 21:02:04 Jeff Powanda wrote: > I'm using xsltproc.exe and FOP 0.93 to try to convert DocBook 4 (version > 1.72) to PDF output. I keep getting this NullPointerException. From > other messages posted here, I assumed it had to do with an older version > of Xalan included with JRE 1.5, but I've placed the FOP 0.93 JAR files > into the <JRE>\lib\endorsed folder and that hasn't fixed the problem. > Anyone have any idea what's wrong. I've attached the FO file I'm using. > > > > SEVERE: Exception > > java.lang.NullPointerException > > at > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) > > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) > > at org.apache.fop.cli.Main.startFOP(Main.java:160) > > at org.apache.fop.cli.Main.main(Main.java:191) > > > > --------- > > > > java.lang.NullPointerException > > at > org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103) > > at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166) > > at org.apache.fop.fonts.Font.hasChar(Font.java:189) > > at org.apache.fop.fonts.Font.getCharWidth(Font.java:231) <snip/> Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
