You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Andreas Delmelle <an...@telenet.be> on 2008/04/18 12:07:24 UTC
FYI: NullPointerException when building FOP trunk on Mac?
Hi
I updated my sandbox to include the processing-feedback changes, and
after running 'ant clean', I got the following when running target
resourcegen:
resourcegen:
[mkdir] Created dir: /Developer/javatools/xml-fop/build/codegen-classes
[javac] Compiling 3 source files to /Developer/javatools/xml-fop/
build/codegen-classes
[copy] Copying 2 files to /Developer/javatools/xml-fop/build/codegen-
classes
BUILD FAILED
/Developer/javatools/xml-fop/build.xml:424:
java.lang.NullPointerException
The reason for the NPE, was the fact that event-model.xml with me
yielded an empty file...
This also happened here with a fresh trunk checkout (eliminating any
local changes as the cause).
I suspected this to be caused by the XML parser/XSLT processor that
come with the Apple 1.5 JVM (Xerces/Xalan, same as the Sun JVM).
First I tried switching only the TransformerFactory implementation,
as suggested by Raphael Parree on fop-users@, and then the event-
model.xml didn't get generated.
Instead of an NPE due to an empty file, I get a FileNotFoundException...
Finally succeeded by forcing the JVM to use both the Xerces and Xalan
versions that are shipped with FOP.
No idea of the exact cause, but just thought I'd share this if there
are other people running into similar trouble when building FOP on Mac.
Cheers
Andreas