aspose file tools*
The moose likes Servlets and the fly likes digital signature error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "digital signature error" Watch "digital signature error" New topic
Author

digital signature error

Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 225

for the following code


it is giving following exception

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
InfonetFilter.doFilter(InfonetFilter.java:43)
root cause

java.lang.NoSuchMethodError: org.bouncycastle.asn1.DERSequence.<init>(Lorg/bouncycastle/asn1/DEREncodableVector;)V
com.itextpdf.text.pdf.PdfPKCS7.getEncodedPKCS7(PdfPKCS7.java:1201)
com.itextpdf.text.pdf.PdfPKCS7.getEncodedPKCS7(PdfPKCS7.java:1151)
com.itextpdf.text.pdf.PdfSigGenericPKCS.setSignInfo(PdfSigGenericPKCS.java:107)
com.itextpdf.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:973)
com.itextpdf.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:897)
com.itextpdf.text.pdf.PdfStamper.close(PdfStamper.java:192)
Digital.doGet(Digital.java:53)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
InfonetFilter.doFilter(InfonetFilter.java:43)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18

what could be the problem?
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 191

This looks more a bouncy castle issue.

Looking quickly in the web appears several hits about version 1.46 and works fine in 1.43: http://itext-general.2136553.n4.nabble.com/Nosuchmethod-error-for-bouncy-castle-td3492864.html


http://devwebcl.blogspot.com/
Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 225

German Gonzalez-Morris wrote:This looks more a bouncy castle issue.

Looking quickly in the web appears several hits about version 1.46 and works fine in 1.43: http://itext-general.2136553.n4.nabble.com/Nosuchmethod-error-for-bouncy-castle-td3492864.html

as i am working on my college server so i can't enhance the version of jar file so is there is any alternative for it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: digital signature error