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 RE: Formatting PDF's with Xalan/FOP
Date Mon, 29 Jan 2001 23:07:53 GMT
Alright here was the problem, it's the same problem I always get, library
versions. For FOP 0_16_0 I had to rollback to a different version xerces. It
seems that xerces 1.2.3 is not compatible with the current FOP/Xalan
transformations.

The only problem remaining is graphics. When the page loads into the PDF
Viewer, I get a requester saying "Read less image data than expected".

But I can live with that for now.

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

Level 13,
181 Miller Street,
North Sydney
Australia


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


> -----Original Message-----
> From: Anthony Ikeda [mailto:anthony.ikeda@proxima-tech.com]
> Sent: Tuesday, 30 January 2001 9:45 AM
> To: Apache XML General (E-mail)
> Subject: Formatting PDF's with Xalan/FOP
> 
> 
> 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.transformPD
> F(pdfTransform
> er.java:160)
>         at
> _0002fpdfEr_0002ejsppdfEr_jsp_18._jspService(_0002fpdfEr_0002e
> jsppdfEr_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(ContextM
> anager.java:79
> 7)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:210)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.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(XMLPars
> er.java:1922)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML
> DocumentScanne
> r.java:1831)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
> er.dispatch(XM
> LDocumentScanner.java:991)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
> cumentScanner.
> 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.transformPD
> F(pdfTransform
> er.java:160)
>         at
> _0002fpdfEr_0002ejsppdfEr_jsp_18._jspService(_0002fpdfEr_0002e
> jsppdfEr_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(ContextM
> anager.java:79
> 7)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:210)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.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
> 
> 
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
> 

Mime
View raw message