Hi all,
I am using Alfresco community version 5.2 i have installed 2 amps files of pdf toolkit
1-pdf-toolkit-repo-1.4.0.amp
2-pdf-toolkit-share-1.4.0.amp
Append option is working properly but while using insert option it is giving error---> the insert operation failed.
I am attaching image of the error. Please try to help me regarding this issue.
@angelborroy @EddieMay Please help me in removing this bug/error.
Hi @akash251998,
Can you provide the alfresco log file please?
Thanks,
LOG FILE INFO:
2020-06-24 14:34:03,572 DEBUG [org.alfresco.plugin.digitalSigning.webscript.SignUpload] [http-apr-8080-exec-6] Retrieve parameters
2020-06-24 14:34:09,850 DEBUG [org.alfresco.plugin.digitalSigning.webscript.ChooseAlias] [http-apr-8080-exec-7] Retrieve parameters
2020-06-24 14:36:21,318 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-8] Exception from executeScript: 05240018 Wrapped Exception (with status template): 05240146 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 05240145 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/CertificateV
org.springframework.extensions.webscripts.WebScriptException: 05240018 Wrapped Exception (with status template): 05240146 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 05240145 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/CertificateV
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2549)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2538)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.scripts.ScriptException: 05240146 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 05240145 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/CertificateV
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:211)
at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)
at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)
at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)
at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
... 37 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05240145 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/CertificateV
at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:533)
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207)
... 42 more
Caused by: java.lang.NoSuchMethodError: com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/CertificateV
at com.itextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignature.java:169)
at com.itextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignature.java:107)
at org.alfresco.plugin.digitalSigning.service.SigningService.signPDFFile(SigningService.java:309)
at org.alfresco.plugin.digitalSigning.service.SigningService.sign(SigningService.java:592)
at org.alfresco.plugin.digitalSigning.script.SigningServiceScript.sign(SigningServiceScript.java:364)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_23._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js:63)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_23.call(classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_23.call(classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js)
at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_23.exec(classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js)
at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)
... 43 more
2020-06-24 14:47:34,424 DEBUG [org.alfresco.plugin.digitalSigning.webscript.SignUpload] [http-apr-8080-exec-13] Retrieve parameters
2020-06-24 14:47:40,231 DEBUG [org.alfresco.plugin.digitalSigning.webscript.ChooseAlias] [http-apr-8080-exec-16] Retrieve parameters
2020-06-24 15:05:28,454 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-15] Exception from executeScript: 05240019 Wrapped Exception (with status template): 05240501 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 05240500 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/CertificateV
org.springframework.extensions.webscripts.WebScriptException: 05240019 Wrapped Exception (with status template): 05240501 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 05240500 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/CertificateV
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2549)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2538)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Hi @akash251998,
Can you check which jar files you have in tomcat/webapps/alfresco/WEB-INF/lib folder. Refer to this resolved issue.
HTH,
Thanks it is working.
But i am attaching an image file but image is not coming in the document after signing the document. Is there any specific image extension or what.
Thanks in Advance.
And i am getting the error in log is:
2020-06-25 14:56:44,896 DEBUG [org.alfresco.plugin.digitalSigning.webscript.ChooseAlias] [http-apr-8080-exec-9] Retrieve parameters
2020-06-25 14:59:42,328 DEBUG [org.alfresco.plugin.digitalSigning.webscript.SignUpload] [http-apr-8080-exec-17] Retrieve parameters
2020-06-25 14:59:50,109 DEBUG [org.alfresco.plugin.digitalSigning.webscript.ChooseAlias] [http-apr-8080-exec-14] Retrieve parameters
2020-06-25 15:40:42,026 WARN [org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter] [http-apr-8080-exec-25] Metadata extraction failed (turn on DEBUG for full error):
Extracter: org.alfresco.repo.content.metadata.PoiMetadataExtracter@3ffa9c38
Content: ContentAccessor[ contentUrl=store://2020/6/25/15/40/38b51b1b-a1ee-4000-8783-052ce19efbc2.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=171870, encoding=UTF-8, locale=en_US]
Failure: nullnull
Digital sign was not working after deleting the library it is working but insert operation is still giving the same error.
The insert operation failed.
Dear @EddieMay please help as it's a urgent requirement.
@EddieMay dear sir please help.
Hi @akash251998
Looking at the log output, 'Metadata extraction failed (turn on DEBUG for full error):' - I'd suggest setting logging to DEBUG level for futher information.
HTH
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.