xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Newkid <shyamf...@yahoo.com>
Subject javax.xml.transform.TransformerException: java.lang.NullPointerException
Date Wed, 09 Apr 2008 00:46:33 GMT

Hi there!

Can any one put some lights on the below mention concern?


Apr 9, 2008 4:27:59 AM org.apache.fop.fo.FOTreeBuilder fatalError
SEVERE: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1276)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
	at XML2PDF.main(XML2PDF.java:130)
Caused by: java.lang.NullPointerException
	at
org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:264)
	at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:192)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1224)
	... 4 more
---------
java.lang.NullPointerException
	at
org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:264)
	at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:192)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1224)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
	at XML2PDF.main(XML2PDF.java:130)


I'm getting the same when I passed a Binarystream instead of XML file to
XSLT transformation as input.. i.e. 


> // Providing BinaryStream of data as input to XSLT transformation
> Source src = new StreamSource(BinaryStream);
> Result res = new SAXResult(fop.getDefaultHandler());
> transformer.transform(src, res);
> 

Please advice.

With Thanks!
Newkid
-- 
View this message in context: http://www.nabble.com/javax.xml.transform.TransformerException%3A-java.lang.NullPointerException-tp16577116p16577116.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message