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(PDFDocumentGraphics2D
> .java:262)
>       at
> org.apache.fop.svg.PDFDocumentGraphics2D.finish(PDFDocumentGraphics2D.ja
> va:360)




Jeremias Maerki

Reply via email to