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 Johannes Wolfgang Woger <wo...@syslog.at> on 2004/09/23 16:41:47 UTC

Re: NullPointerExceptionat.org.apache.transformer.TransformerImpl.run

----- Original Message ----- 
From: "Johann Mattsson" <jo...@migrationsverket.se>
To: <fo...@xml.apache.org>
Sent: Thursday, September 23, 2004 8:45 AM
Subject: Ang:
NullPointerExceptionat.org.apache.transformer.TransformerImpl.run


> Ummm Im not sure abut this, but did the rendering actualy produce any
pages? The FOP output usualy logs for every page it produces too, in your
console output i cant see any of that.
Actually my JSP file could not produce any input, But that problem is solved
now by introducing the JSP file via URL class.

Thanks
Wolfgang
>
> /Johann M
>
> >>> wolfgang.woger@syslog.at 04/09/22 13:49 >>>
> Hi,
> I use a Struts Action doing what the FopPrintServlet (from examples) does.
> When I put projectteam.xml and projectteam2fo.xsl (from examples too) into
the querystring
> as suggested, everything works fine.
>
> But when I try to provide the projectteam.xml via a JSP file that includes
the content of projectteam.xml
> I get a NullPointerException:
>
> java.lang.RuntimeException: java.lang.NullPointerException
>  at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
>  at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:433)
>  at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown
Source)
>  at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
Source)
>  at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
>  at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>  at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
>  at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc
h(Unknown Source)
>  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
>  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>  at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
>  at org.apache.fop.apps.Driver.render(Driver.java:498)
>  at at.syslog.spm.action.Print_Action.renderXML(Unknown Source)
> and more....
>
> Let me say that the jsp file is perfect xml markup:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
>     xmlns:c="http://java.sun.com/jstl/core" version="2.0">
> <jsp:directive.page contentType="text/html"/>
> <c:set var="locationTable">
>   <jsp:include page="/Include_Servlet" flush="true"/>
> </c:set>
> <c:out value="${locationTable}"/>
> </jsp:root>
>
> the console says:
> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [INFO] building formatting object tree
> [INFO] setting up fonts
> [INFO] Parsing of document complete, stopping renderer
>
> What went wrong?
>
> Wolfgang
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>


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