AEM 6.4 Reader Extension service failing with timeout(ThreadDeath)

Adobe_LC4

19-07-2019

We have AEM 6.4 OSGI installed on tomcat 8 with FORMS add-on packages.

We have a sling servlet calling DocAssuranceService to reader extend forms but we are getting ThreadDeath throwable as below.

It looks like this issue is triggered when Reader Extension service is executing javascripts on postSave event on the form and timing out. This process with the same forms is wokring fine in AEM Forms running on JEE server but it is failing on OSGI bundles.

The timeout seems to be set to 10 seconds in com.adobe.internal.pdftoolkit.services.javascript.GibsonContextFactory.

Is there way to configure this timeout or bypass postSave event on the server when reader extending a form?

org.apache.sling.engine.impl.SlingReq

uestProcessorImpl service: Uncaught Throwable

java.lang.ThreadDeath: null

        at com.adobe.internal.pdftoolkit.services.javascript.GibsonContextFactory.observeInstructionCount(GibsonContextFactory.java:138) [PDFService

s_security:3.0.604301]

        at org.mozilla.javascript.Context.observeInstructionCount(Context.java:2371)

        at org.mozilla.javascript.ScriptRuntime.addInstructionCount(ScriptRuntime.java:3327)

        at org.mozilla.javascript.gen.c_161._c_script_0(:1)

        at org.mozilla.javascript.gen.c_161.call()

        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)

        at com.adobe.internal.pdftoolkit.services.javascript.GibsonContextFactory.doTopCall(GibsonContextFactory.java:151) [PDFServices_security:3.0.604301]

        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)

        at org.mozilla.javascript.gen.c_161.call()

        at org.mozilla.javascript.gen.c_161.exec()

        at com.adobe.internal.pdftoolkit.services.xfa.impl.JavaScriptHandler.execute(JavaScriptHandler.java:505) [PDFServices_security:3.0.604301]

        at com.adobe.internal.pdftoolkit.services.xfa.impl.JavaScriptHandler.executeOrSyntaxCheck(JavaScriptHandler.java:421) [PDFServices_security:3.0.604301]

        at com.adobe.xfa.ScriptHandler.execute(ScriptHandler.java:361) [xfa4j:3.7.4]

        at com.adobe.xfa.Element.evaluate(Element.java:1493) [xfa4j:3.7.4]

        at com.adobe.xfa.form.ScriptRunAtDispatcher.dispatch(ScriptRunAtDispatcher.java:109) [xfa4j:3.7.4]

        at com.adobe.xfa.EventManager.dispatch(EventManager.java:467) [xfa4j:3.7.4]

        at com.adobe.xfa.EventManager.eventOccurred(EventManager.java:447) [xfa4j:3.7.4]

        at com.adobe.xfa.form.FormModel.eventOccurred(FormModel.java:3533) [xfa4j:3.7.4]

        at com.adobe.internal.pdftoolkit.services.xfa.form.DocumentContext.eventOccurred(DocumentContext.java:1573) [PDFServices_security:3.0.604301]

        at com.adobe.internal.pdftoolkit.services.xfa.form.XFAPlugin.PDDocDidSaveProc(XFAPlugin.java:439) [PDFServices_security:3.0.604301]

        at com.adobe.internal.pdftoolkit.services.digsig.impl.SigningUtils.execEvent(SigningUtils.java:605) [PDFServices_security:3.0.604301]

        at com.adobe.internal.pdftoolkit.services.digsig.impl.SigningUtils.doSigning(SigningUtils.java:849) [PDFServices_security:3.0.604301]

        at com.adobe.internal.pdftoolkit.services.digsig.SignatureManager.applyUsageRights(SignatureManager.java:1797) [PDFServices_security:3.0.604301]

        at com.adobe.fd.readerextensions.service.impl.ReaderExtensionsImplementation.applyUsageRights(ReaderExtensionsImplementation.java:123) [com.adobe.aemfd.adobe-aemfd-readerextensions:5.1.6]

        at com.adobe.fd.readerextensions.service.impl.ReaderExtensionsServiceImpl.applyUsageRights(ReaderExtensionsServiceImpl.java:208) [com.adobe.aemfd.adobe-aemfd-readerextensions:5.1.6]

        at com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl.addReaderExtensions(DocAssuranceServiceImpl.java:887) [adobe-aemfd-docassurance:5.1.6]

        at com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl.secureDocument(DocAssuranceServiceImpl.java:242) [adobe-aemfd-docassurance:5.1.6]

        ...................

Accepted Solutions (0)

Answers (0)