xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Ikeda <anthony.ik...@proxima-tech.com>
Subject Formatting PDF's with Xalan/FOP
Date Mon, 29 Jan 2001 22:44:56 GMT
Okay, I added the driver.setErrorDump(true); to my code an d this is what I
get:

org.xml.sax.SAXException (nested exception: java.lang.NullPointerException )
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1225)
        at org.apache.fop.apps.Driver.buildFOTree(Driver.java:298)
        at
com.proxima.centauri.taglibrary.xml.pdfTransformer.transformPDF(pdfTransform
er.java:160)
        at
_0002fpdfEr_0002ejsppdfEr_jsp_18._jspService(_0002fpdfEr_0002ejsppdfEr_jsp_1
8.java:97)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)
java.lang.NullPointerException
        at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:271)
        at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1289)
        at
org.apache.xerces.framework.XMLParser.callStartElement(XMLParser.java:1922)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1831)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:991)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
        at org.apache.fop.apps.Driver.buildFOTree(Driver.java:298)
        at
com.proxima.centauri.taglibrary.xml.pdfTransformer.transformPDF(pdfTransform
er.java:160)
        at
_0002fpdfEr_0002ejsppdfEr_jsp_18._jspService(_0002fpdfEr_0002ejsppdfEr_jsp_1
8.java:97)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)
PDF transform error...org.apache.fop.apps.FOPException

I've tried removing code from my stylesheet down to the very <fo:root>
element. I know my xsl works because I get a result in cocoon.

Has anyone else had this problem? I'm using FOP 0_16_0 and Xalan-J 2 D07.

Cheers,
Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143


Mime
View raw message