You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mohammed Amin <mo...@yahoo.com> on 2005/10/05 10:11:12 UTC

NullPointerException while trying to run FOP servlet

Dear All,
 
I'm trying to instantiate FOP servlet but i got this exception:
 
java.lang.NullPointerException
	at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:776)
	at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:343)
	at oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
	at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:286)
	at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:184)
	at oracle.xml.jaxp.JXXMLFilter.parse(JXXMLFilter.java:96)
	at org.apache.fop.apps.Driver.render(Driver.java:498)
	at ws.its.fop.FopServlet.renderXML(FopServlet.java:119)
	at ws.its.fop.FopServlet.doGet(FopServlet.java:50)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
	at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
	at java.lang.Thread.run(Thread.java:534)

		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: NullPointerException while trying to run FOP servlet

Posted by Glen Mazza <gm...@apache.org>.
Jeremias Maerki wrote:

> Was there a nested exception further down the stack trace? If not, this
> is not enough information for us help you. Please run this document
> through FOP from the command-line. This might help you track down the
> problem. Maybe it's not even caused by FOP.
> 

If your FO (or XML/XSLT stylesheet) works fine from FOP command-line, 
you may also wish to try using Xerces and Xalan instead of the Oracle 
parsing libraries and see if the problem still occurs.  (Ideally, even 
if there were an error in the input FO, I would think the Oracle 
JXTransformer should be robust enough to not throw an NPE but a 
meaningful error message instead.)

Glen


> On 05.10.2005 10:11:12 Mohammed Amin wrote:
> 
>>I'm trying to instantiate FOP servlet but i got this exception:
>> 
>>java.lang.NullPointerException
>>	at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:776)
>>	at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:343)
>>	at oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
>>	at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:286)
>>	at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:184)

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


Re: NullPointerException while trying to run FOP servlet

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Was there a nested exception further down the stack trace? If not, this
is not enough information for us help you. Please run this document
through FOP from the command-line. This might help you track down the
problem. Maybe it's not even caused by FOP.

On 05.10.2005 10:11:12 Mohammed Amin wrote:
> I'm trying to instantiate FOP servlet but i got this exception:
>  
> java.lang.NullPointerException
> 	at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:776)
> 	at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:343)
> 	at oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
> 	at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:286)
> 	at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:184)
> 	at oracle.xml.jaxp.JXXMLFilter.parse(JXXMLFilter.java:96)
> 	at org.apache.fop.apps.Driver.render(Driver.java:498)
> 	at ws.its.fop.FopServlet.renderXML(FopServlet.java:119)
> 	at ws.its.fop.FopServlet.doGet(FopServlet.java:50)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
> 	at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
> 	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
> 	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
> 	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
> 	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
> 	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
> 	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
> 	at java.lang.Thread.run(Thread.java:534)


Jeremias Maerki


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