0 Replies Latest reply on Nov 30, 2011 8:31 AM by superflexer

    Error verifying signature

    superflexer Level 1

      I am getting the following error while invoking the verify signature operation of Livecyle Signature service :  Does anyone have any idea when this error shows up ?

       


      PDFSignatureVerificationResult signInfo = signClient.verify(




      inputPDF,






      fieldName,






      RevocationCheckStyle.NoCheck,






      VerificationTime.CURRENT_TIME,






      null,






      null,






      null,






      null);

       

       

      java.lang.ClassCastException: com.rsa.jsafe.provider.JSA_RSAPublicKey incompatible with com.rsa.jsafe.provider.JS_PublicKey

          at com.rsa.jsafe.provider.JS_Signature.engineInitVerify(Unknown Source)

          at java.security.Signature$SignatureImpl.engineInitVerify(Signature.java:510)

          at java.security.Signature.initVerify(Signature.java:182)

          at com.adobe.livecycle.signatures.pki.signature.CMSPKCS7Impl.verify(CMSPKCS7Impl.java:178)

          at com.adobe.livecycle.signatures.pki.signature.CMSPKCS7Impl.verify(CMSPKCS7Impl.java:424)

          at com.adobe.livecycle.signatures.pki.impl.PKIOperations.verifySignature(PKIOperations.java: 428)

          at com.adobe.idp.cryptoprovider.PKCS7Verifier.verify(PKCS7Verifier.java:109)

          at com.adobe.internal.pdftoolkit.services.digsig.digsigframework.impl.SignatureHandlerPKCS7. validate(SignatureHandlerPKCS7.java:241)

          at com.adobe.internal.pdftoolkit.services.digsig.Signature.validate(Signature.java:858)

          at com.adobe.livecycle.signatures.service.impl.VerifyImpl.verifyPDFSignature(VerifyImpl.java :781)

          at com.adobe.livecycle.signatures.service.impl.VerifyImpl.verifyField(VerifyImpl.java:388)

          at com.adobe.livecycle.signatures.service.impl.VerifyImpl.verify(VerifyImpl.java:229)

          at com.adobe.livecycle.signatures.service.impl.DocumentSecurityService.verify2(DocumentSecur ityService.java:870)

          at com.adobe.livecycle.signatures.service.impl.DocumentSecurityService.verify(DocumentSecuri tyService.java:725)

          at sun.reflect.GeneratedMethodAccessor729.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

          at java.lang.reflect.Method.invoke(Method.java:600)

          at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)

          at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)

          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

          at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)

          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

          at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)

          at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)

          at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionBMTAdapter_ 3af08fdf.doRequiresNew(Unknown Source)

          at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:133)

          at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)

          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

          at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)

          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

          at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)

          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

          at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)

          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

          at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)

          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

          at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)

          at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)

          at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:329)

          at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(EjbReceiverBean.java: 158)

          at com.adobe.idp.dsc.provider.impl.ejb.receiver.EJSRemoteStatelessInvocation_b542628e.invoke (Unknown Source)

          at com.adobe.idp.dsc.provider.impl.ejb.receiver._EJSRemoteStatelessInvocation_b542628e_Tie.i nvoke(_EJSRemoteStatelessInvocation_b542628e_Tie.java:161)

          at com.adobe.idp.dsc.provider.impl.ejb.receiver._EJSRemoteStatelessInvocation_b542628e_Tie._ invoke(_EJSRemoteStatelessInvocation_b542628e_Tie.java:88)

          at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)

          at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)

          at com.ibm.rmi.iiop.ORB.process(ORB.java:513)

          at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)

          at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)

          at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)

          at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)

          at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)

          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)