Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XSL-FO-PDF Null pointer exception

1 view
Skip to first unread message

phillip

unread,
Mar 4, 2002, 4:46:35 AM3/4/02
to
Hi,

I get past the point of creating the .fo. But when i render the PDF I
get a stream of nullPointerexceptions :

[ERROR]: Logger not set
[INFO]: building formatting object tree

org.apache.fop.apps.FOPException
at org.apache.fop.apps.Driver.render(Driver.java:486)
---------

java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
---------

java.lang.NullPointerException
at org.apache.fop.fo.flow.Flow.setFlowName(Flow.java:98)
at org.apache.fop.fo.flow.Flow.<init>(Flow.java:77)
Exception in Transformation :null
--------
</font>
All resulting from the :

public static void buildPDFFromFO(InputSource in, OutputStream out)
throws Exception {
String version = org.apache.fop.apps.Version.getVersion() ;

System.setProperty("org.xml.sax.driver","org.apache.xerces.parsers.SAXParser");
XMLReader reader =
XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
reader.setFeature("http://xml.org/sax/features/namespace-prefixes",
true);

Driver driver = new Driver(in, out);
driver.setRenderer(driver.RENDER_XML);
driver.render(reader, in); //crashes here

}


any ideas would be greatly appreciated

Phill

0 new messages