I have updated the version of iText we are using to 5.0.5 and made the required
package changes.  When the PDF is being stamped within our application, we get
the following error:

500 Servlet Exception
java.lang.NullPointerException
        at com.itextpdf.text.pdf.PdfPKCS7.<init>(PdfPKCS7.java:577)
        at com.itextpdf.text.pdf.PdfSigGenericPKCS.setSignInfo(
           PdfSigGenericPKCS.java:95)
        at com.itextpdf.text.pdf.PdfSignatureAppearance.preClose(
           PdfSignatureAppearance.java:973)
        at com.itextpdf.text.pdf.PdfSignatureAppearance.preClose(
           PdfSignatureAppearance.java:897)
        at com.itextpdf.text.pdf.PdfStamper.close(PdfStamper.java:192)

I took a look at 5.0.5's source code for PdfPKCS7.java leading me to this line
of code:
        signCert = (X509Certificate)certChain[0];

Is there a configuration issue with the PDFStamper or PdfSignatureAppearance,
or is this problem related to the actual certificate being used to sign the 
PDF?

Thanks again.  Your help is appreciated.

Regards,
Adam



------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to