aspose file tools*
The moose likes Servlets and the fly likes pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "pdf" Watch "pdf" New topic
Author

pdf

rakhi sinha
Ranch Hand

Joined: Mar 26, 2012
Posts: 147

I am using foloowing code to digitally sign the pdfs but it is showing exception



Exception

HTTP Status 500 -

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

type Exception report

message

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

exception

java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
sun.security.util.DerInputStream.getLength(DerInputStream.java:544)
sun.security.util.DerValue.init(DerValue.java:346)
sun.security.util.DerValue.<init>(DerValue.java:302)
com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1200)
java.security.KeyStore.load(KeyStore.java:1185)
LoginExample.digital2.doGet(digital2.java:43)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
LoginExample.generatepdf1.doGet(generatepdf1.java:157)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


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


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

Apache Tomcat/6.0.32
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pdf