Topic
3 replies Latest Post - ‏2010-10-01T08:57:57Z by kiranrai
GovinduSaritha
GovinduSaritha
1 Post
ACCEPTED ANSWER

Pinned topic IBM P Series Digital Signature .pfx file not working

‏2009-11-18T11:11:21Z |
Hi,
I have Red hat Linux EL5 on IBM P Series machine.
Tomcat 6.0..18 and JRE1.5.

Whne trying to apply the Digital Signature(using IText-2.1.3) of Format .pfx and KeyStore as "pkcs12", getting the following Exception. Please reply me ASAP.
java.lang.NullPointerException
at com.lowagie.text.pdf.PdfSignatureAppearance.getAppearance(Unknown Source)
at com.lowagie.text.pdf.PdfSignatureAppearance.preClose(Unknown Source)
at com.lowagie.text.pdf.PdfSignatureAppearance.preClose(Unknown Source)
at com.lowagie.text.pdf.PdfStamper.close(Unknown Source)
at com.edistrict.helpers.DetailsHelper.ApplySignature(DetailsHelper.java:427)
at com.edistrict.helpers.PrcCertificateHelper.GeneratePRCCertificate(PrcCertificateHelper.java:390)
at com.edistrict.certificates.CertificateDetails.processRequest(CertificateDetails.java:92)
at com.edistrict.certificates.CertificateDetails.doPost(CertificateDetails.java:205)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:735)
Regards,
Saritha
Updated on 2010-10-01T08:57:57Z at 2010-10-01T08:57:57Z by kiranrai
  • GAURAV  KUMAR TYAGI
    GAURAV KUMAR TYAGI
    1 Post
    ACCEPTED ANSWER

    Re: IBM P Series Digital Signature .pfx file not working

    ‏2010-03-03T18:06:33Z  in response to GovinduSaritha
    have u got the answer for this problem that this null pointer exception is coming in signing a pdf using .pfx . if ve got please share...very urgently needed.

    thanks and regards,
    gaurav kumar tyagi
  • SystemAdmin
    SystemAdmin
    4672 Posts
    ACCEPTED ANSWER

    Re: IBM P Series Digital Signature .pfx file not working

    ‏2010-03-30T10:28:30Z  in response to GovinduSaritha
    There's not much information provided to resolve this issue.
    You're using a 3rd party library to sign a PFX file, the stack trace doesn't show any JDK classes, so how do you figure this is a problem with IBM JDK?

    Try this for a start-
    Write a standalone program that just calls the IText API to sign a PDF, and run it on your local Windows/Linux box using Sun JDK. This will atleast let us know whether the problem is with your code or the library being used.
  • kiranrai
    kiranrai
    1 Post
    ACCEPTED ANSWER

    Re: IBM P Series Digital Signature .pfx file not working

    ‏2010-10-01T08:57:57Z  in response to GovinduSaritha
    have u got the answer for this problem that this null pointer exception is coming in signing a pdf using .
    vlc player download