I'm trying to sign a pdf by the help of iText with both Sun 1.5 java & IBM
1.5 java by having iKey 2000 as my token.Though, signing was successful with
Sun java, I'm getting the following exception with IBM java.
java.lang.NullPointerException
at java.math.BigInteger.remainder(BigInteger.java:1367)
at com.ibm.crypto.provider.c.a(Unknown Source)
at com.ibm.crypto.provider.c.a(Unknown Source)
at com.ibm.crypto.provider.gc.engineSign(Unknown Source)
at java.security.Signature$Delegate.engineSign(Signature.java:1180)
at java.security.Signature.sign(Signature.java:576)
at com.lowagie.text.pdf.PdfPKCS7.getEncodedPKCS7(PdfPKCS7.java:798)
at com.lowagie.text.pdf.PdfPKCS7.getEncodedPKCS7(PdfPKCS7.java:771)
at
com.lowagie.text.pdf.PdfSigGenericPKCS.setSignInfo(PdfSigGenericPKCS.java:110)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:928)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:847)
at com.lowagie.text.pdf.PdfStamper.close(PdfStamper.java:175)
at SignPDF.signPDF(SignPDF.java:139)
at SignPDF.main(SignPDF.java:280)
Getting the private key & certificate chain was successful, but still, this
exception gets thrown @ this line - stamper.close().
Any ideas on this would be highly appreciated.
--
View this message in context:
http://www.nabble.com/PDF-Signing-with-IBM-Java-1.5-tp14370209p14370209.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/