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 "S. Jayaraman" <sj...@consor.ch> on 2002/02/19 18:52:09 UTC

FO-->PDF Renderer Driver Error

Hello,

I got the following error in my Servlet.
I have attached the relevant lines from my source program.
The code works on NT but blows in the Solaris version.
Would be happy at some pointers (I could see the method, when I saw the
FOP.JAR file) (FOP Version 0.19.)


Error: 500
Location: /universal/servlet/servPrintDoc
Internal Servlet Error:

java.lang.NoSuchMethodError:org.apache.fop.apps.Driver: method
addPropertyList(Ljava/lang/String;)V not found
at consor.universal.print.buildOutput.writePDF(buildOutput.java:176)
at consor.universal.print.XMLToFO.process(XMLToFO.java:87)
at servPrintDoc.doGet(servPrintDoc.java:65)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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.connector.Ajp13ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)



My SOurceCode extract

            driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",
Version.getVersion());

driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");

driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");

driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
//OFFENDING LINE (Line#176)

driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");


Thank YOu
Kind Rgds
Jay



-------------------------------------------
S. Jayaraman
Consor AG
Ottikerstr. 14
CH-8006 Zurich
Switzerland

email - sjayaraman@consor.ch
phone - +41 1 368 35 36
fax - +41 1 368 35 99
************ BITTE BEACHTEN ************
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise
vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum
Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en)
bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie
höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und
die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre
Hilfe.



Re: FO-->PDF Renderer Driver Error

Posted by Jeremias Maerki <je...@outline.ch>.
This screams to be a version conflict (See NoSuchMethodError in the
javadocs). I'd check if you really use the same version of FOP on NT and
on Solaris.

On 19.02.2002 18:52:09 S. Jayaraman wrote:
> Hello,
> 
> I got the following error in my Servlet.
> I have attached the relevant lines from my source program.
> The code works on NT but blows in the Solaris version.
> Would be happy at some pointers (I could see the method, when I saw the
> FOP.JAR file) (FOP Version 0.19.)
> 
> 
> Error: 500
> Location: /universal/servlet/servPrintDoc
> Internal Servlet Error:
> 
> java.lang.NoSuchMethodError:org.apache.fop.apps.Driver: method
> addPropertyList(Ljava/lang/String;)V not found

<snip/>

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - 6002 Luzern
Fon +41 (0)41 317 2020 - Fax +41 (0)41 317 2029
Internet http://www.outline.ch