You may have to recompile iText with the Java version that your server is using. As always, make sure that you only have one iText.jar in the classpath. Java, compile once, test everywhere.
Paulo ----- Original Message ----- From: "Scott Oebser" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, October 25, 2008 5:19 AM Subject: [iText-questions] createSignature throws Exception Hi, Recently our codebase moved to a new server and now my PDFStamper is throwing errors. I'm using itext v. 2.04 but have tried 2.13 to no avail. It doesn't matter what PDFs I throw at my code, the errors are always the same. I've tried everything I can think of from changing how the Stamper is called to moving/removing jar files. below is my code and the error. Any help, even any guesses would be appreciated. -------CODE----------- PdfReader reader = new PdfReader(dirName + "0temp.pdf"); OutputStream fout = new FileOutputStream(dirName + fileName); PdfStamper stamp = new PdfStamper(reader, fout); stamp.setEncryption(null, null, 0, true); stamp.setViewerPreferences(PdfWriter.HideMenubar); stamp.setViewerPreferences(PdfWriter.HideWindowUI); stamp.setViewerPreferences(PdfWriter.HideToolbar); stamp.close(); ------------------------------- -------------ERRROR-------------- java.lang.VerifyError: (class: com/lowagie/text/pdf/PdfStamper, method: createSignature signature: (Lcom/lowagie/text/pdf/PdfReader;Ljava/io/OutputStream;CLjava/io/File;Z)Lcom/lowagie/text/pdf/PdfStamper;) Incompatible argument to function at org.apache.jsp.Sales.SMReportInput_jsp._jspService(SMReportInput_jsp.java:215) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:548) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) ------------------------------------------- Thank you, --Scott ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
