I found the incorrect build path reference. Now it just doesn't finish. It gets to that statement: configurator.configure(g2d, cfg); Then doesn't appear to be doing anything. It keeps running back to the call: configure(g2d, createAutoFontsConfiguration()); Then jumps right to the finally block, then doesn't execute anything after the finally block. No error message, it just doesn't work.
-----Original Message----- From: Jeremias Maerki [mailto:[email protected]] Sent: Wednesday, October 19, 2011 12:29 PM To: [email protected] Subject: Re: Example crash There must be something off. Last change to PDFGraphics2D was on 2011-10-15. And in current Trunk the NPE in getString (if any) would have to happen on line 297, not 290. I'm pretty sure you've still go a FOP 1.0 JAR in the classpath or something like that. Please check your classpath. On 19.10.2011 16:46:57 Eric Douglas wrote: > What am I missing? > I downloaded fop.jar from yesterday's snapshot and ran the example > program at > http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/ > ja va/embedding/ExampleJava2D2PDF.java?view=markup > It crashed. > Stack trace shows: > java.lang.NullPointerException > at > org.apache.fop.svg.PDFGraphics2D.getString(PDFGraphics2D.java:290) > at > org.apache.fop.svg.PDFDocumentGraphics2D.closePage(PDFDocumentGraphics > 2D > .java:262) > at > org.apache.fop.svg.PDFDocumentGraphics2D.finish(PDFDocumentGraphics2D. > ja > va:360) Jeremias Maerki
