Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Render PDF Form from XDP Workflow is giving error while using in AEM Forms (OSGI)

Avatar

Level 1

Hi Experts,

 

Am trying to use Render PDF Form service in the workflow by following the below steps. but am getting the errors in workflow as given below. can you let me know if am missing anything here.

 

https://khushwantsehgal.wordpress.com/2019/04/14/use-aem-workflow-to-convert-an-xdp-document-to-pdf-...

 

AEM Version : Adobe Experience Manager (6.5.15.0)

Addon Forms Package: adobe-aemfd-win-pkg-6.0.718.zip

 

 

Error: 

com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.adobe.granite.workflow.WorkflowException: Exception while rending PDF form
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess.execute(AEMFDWorkflowProcess.java:82)
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198)
... 8 more

17.03.2023 22:38:30.498 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-03-17/labelpdf2_1:/content/dam/formsanddocuments/letterxdp/LabelTemplate.xdp] com.adobe.forms.aem.impl.XFANativeServiceImpl Exception:
java.lang.IllegalStateException: Connection to failed service.
at com.adobe.service.ResourcePooler.allocateResource(ResourcePooler.java:104)
at com.adobe.service.ConnectionFactoryManagerPeer.getConnectionResourceFromPool(ConnectionFactoryManagerPeer.java:76)
at com.adobe.service.ConnectionFactoryManagerPeerImpl.getConnection(ConnectionFactoryManagerPeerImpl.java:155)
at com.adobe.service.impl.PlatformPeerImpl.lookup(PlatformPeerImpl.java:49) [adobe-aemds-core-bmc:3.0.108]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:136) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:481) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$4(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$2(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.paExecute(XMLFormServiceImpl.scala:168) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplateCacheGen$2(XMLFormServiceImpl.scala:202) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplateCacheGen(XMLFormServiceImpl.scala:197) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$3(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.$anonfun$getOrElseUpdate$2(ResourceCache.scala:107) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate$(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.impl.PreRenderCacheImpl.getOrElseUpdate(PreRenderCacheImpl.scala:35) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$2(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplate(XMLFormServiceImpl.scala:292) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.$anonfun$resolvedTemplate$2(LCOptionsXFAInterpreterImpl.scala:135) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.resolvedTemplate(LCOptionsXFAInterpreterImpl.scala:134) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.RenderPdfServiceImpl.render(RenderPdfServiceImpl.scala:134) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCFormsOsgiServiceImpl.$anonfun$render$2(LCFormsOsgiServiceImpl.scala:88) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCFormsOsgiServiceImpl.render(LCFormsOsgiServiceImpl.scala:83) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.fd.forms.internal.RenderPDFFormService.render(RenderPDFFormService.java:66) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.forms.internal.RenderPDFFormService.renderPDFForm(RenderPDFFormService.java:83) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.forms.impl.FormsServiceImpl.renderPDFForm(FormsServiceImpl.java:121) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.workflow.forms.impl.RenderPDFFormProcess.internal_execute(RenderPDFFormProcess.java:104) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:72) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.callWith(ResourceResolverHelperImpl.java:65) [com.adobe.granite.resourceresolverhelper:1.0.4]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess.execute(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
17.03.2023 22:38:30.506 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-03-17/labelpdf2_1:/content/dam/formsanddocuments/letterxdp/LabelTemplate.xdp] com.adobe.fd.forms.internal.exception.FormsServiceException AEM_FRM_001_004:Unexpected Exception: null
com.adobe.forms.service.LCFormsServiceException: null
at com.adobe.forms.service.impl.LCFormsOsgiServiceImpl.render(LCFormsOsgiServiceImpl.scala:95) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.fd.forms.internal.RenderPDFFormService.render(RenderPDFFormService.java:66) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.forms.internal.RenderPDFFormService.renderPDFForm(RenderPDFFormService.java:83) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.forms.impl.FormsServiceImpl.renderPDFForm(FormsServiceImpl.java:121) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.workflow.forms.impl.RenderPDFFormProcess.internal_execute(RenderPDFFormProcess.java:104) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:72) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.callWith(ResourceResolverHelperImpl.java:65) [com.adobe.granite.resourceresolverhelper:1.0.4]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess.execute(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Connection to failed service.
at com.adobe.service.ResourcePooler.allocateResource(ResourcePooler.java:104)
at com.adobe.service.ConnectionFactoryManagerPeer.getConnectionResourceFromPool(ConnectionFactoryManagerPeer.java:76)
at com.adobe.service.ConnectionFactoryManagerPeerImpl.getConnection(ConnectionFactoryManagerPeerImpl.java:155)
at com.adobe.service.impl.PlatformPeerImpl.lookup(PlatformPeerImpl.java:49) [adobe-aemds-core-bmc:3.0.108]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:136) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:481) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$4(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$2(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.paExecute(XMLFormServiceImpl.scala:168) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplateCacheGen$2(XMLFormServiceImpl.scala:202) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplateCacheGen(XMLFormServiceImpl.scala:197) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$3(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.$anonfun$getOrElseUpdate$2(ResourceCache.scala:107) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate$(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.impl.PreRenderCacheImpl.getOrElseUpdate(PreRenderCacheImpl.scala:35) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$2(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplate(XMLFormServiceImpl.scala:292) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.$anonfun$resolvedTemplate$2(LCOptionsXFAInterpreterImpl.scala:135) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.resolvedTemplate(LCOptionsXFAInterpreterImpl.scala:134) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.RenderPdfServiceImpl.render(RenderPdfServiceImpl.scala:134) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCFormsOsgiServiceImpl.$anonfun$render$2(LCFormsOsgiServiceImpl.scala:88) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCFormsOsgiServiceImpl.render(LCFormsOsgiServiceImpl.scala:83) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
... 17 common frames omitted
17.03.2023 22:38:30.512 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-03-17/labelpdf2_1:/content/dam/formsanddocuments/letterxdp/LabelTemplate.xdp] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step
com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.adobe.granite.workflow.WorkflowException: Exception while rending PDF form
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess.execute(AEMFDWorkflowProcess.java:82) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
... 8 common frames omitted

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

That document is outdate. We have added two workflow components and recommend you use one of them in your workflow to create pdf from xdp

workflowuser_0-1679083782335.png

 

workflowuser_1-1679083807285.png

 

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

That document is outdate. We have added two workflow components and recommend you use one of them in your workflow to create pdf from xdp

workflowuser_0-1679083782335.png

 

workflowuser_1-1679083807285.png

 

Avatar

Level 1

@workflowuser Thanks for taking time for this and appreciate your reply, I tried "Generate Non Interactive PDF" but its giving the below error, believe the  problem is with OutputService.

 

18.03.2023 01:54:04.888 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-03-18/labelpdf1_3:/content/dam/formsanddocuments/ntr/nvk.xdp] com.adobe.forms.aem.impl.XFANativeServiceImpl Exception:
java.lang.IllegalStateException: Connection to failed service.
at com.adobe.service.ResourcePooler.allocateResource(ResourcePooler.java:104)
at com.adobe.service.ConnectionFactoryManagerPeer.getConnectionResourceFromPool(ConnectionFactoryManagerPeer.java:76)
at com.adobe.service.ConnectionFactoryManagerPeerImpl.getConnection(ConnectionFactoryManagerPeerImpl.java:155)
at com.adobe.service.impl.PlatformPeerImpl.lookup(PlatformPeerImpl.java:49) [adobe-aemds-core-bmc:3.0.108]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:136) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:481) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$4(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$2(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.paExecute(XMLFormServiceImpl.scala:168) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplateCacheGen$2(XMLFormServiceImpl.scala:202) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplateCacheGen(XMLFormServiceImpl.scala:197) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$3(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.$anonfun$getOrElseUpdate$2(ResourceCache.scala:107) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate$(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.impl.PreRenderCacheImpl.getOrElseUpdate(PreRenderCacheImpl.scala:35) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$2(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplate(XMLFormServiceImpl.scala:292) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.$anonfun$resolvedTemplate$2(LCOptionsXFAInterpreterImpl.scala:135) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.resolvedTemplate(LCOptionsXFAInterpreterImpl.scala:134) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.AEMFormsHelperServiceImpl.resolvedTemplate(AEMFormsHelperServiceImpl.scala:53) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.fd.output.impl.OutputServiceImpl.generatePDFOutput(OutputServiceImpl.java:195) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.workflow.output.impl.GeneratePDFOutputProcess.internal_execute(GeneratePDFOutputProcess.java:87) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:72) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.callWith(ResourceResolverHelperImpl.java:65) [com.adobe.granite.resourceresolverhelper:1.0.4]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess.execute(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
18.03.2023 01:54:04.891 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-03-18/labelpdf1_3:/content/dam/formsanddocuments/ntr/nvk.xdp] com.adobe.fd.output.internal.exception.OutputServiceException AEM_OUT_001_003:Unexpected Exception: Connection to failed service.
java.lang.IllegalStateException: Connection to failed service.
at com.adobe.service.ResourcePooler.allocateResource(ResourcePooler.java:104)
at com.adobe.service.ConnectionFactoryManagerPeer.getConnectionResourceFromPool(ConnectionFactoryManagerPeer.java:76)
at com.adobe.service.ConnectionFactoryManagerPeerImpl.getConnection(ConnectionFactoryManagerPeerImpl.java:155)
at com.adobe.service.impl.PlatformPeerImpl.lookup(PlatformPeerImpl.java:49) [adobe-aemds-core-bmc:3.0.108]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:136) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.aem.impl.XFANativeServiceImpl.paExecute(XFANativeServiceImpl.java:481) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$4(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$2(XMLFormServiceImpl.scala:177) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.paExecute(XMLFormServiceImpl.scala:168) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplateCacheGen$2(XMLFormServiceImpl.scala:202) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplateCacheGen(XMLFormServiceImpl.scala:197) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$3(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.$anonfun$getOrElseUpdate$2(ResourceCache.scala:107) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate$(ResourceCache.scala:97) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.cache.impl.PreRenderCacheImpl.getOrElseUpdate(PreRenderCacheImpl.scala:35) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$2(XMLFormServiceImpl.scala:295) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplate(XMLFormServiceImpl.scala:292) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.$anonfun$resolvedTemplate$2(LCOptionsXFAInterpreterImpl.scala:135) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.resolvedTemplate(LCOptionsXFAInterpreterImpl.scala:134) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.forms.service.impl.AEMFormsHelperServiceImpl.resolvedTemplate(AEMFormsHelperServiceImpl.scala:53) [com.adobe.livecycle.adobe-lc-forms-core:8.0.194]
at com.adobe.fd.output.impl.OutputServiceImpl.generatePDFOutput(OutputServiceImpl.java:195) [com.adobe.livecycle.adobe-lc-forms-bedrock-connector:8.0.194]
at com.adobe.fd.workflow.output.impl.GeneratePDFOutputProcess.internal_execute(GeneratePDFOutputProcess.java:87) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:72) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess$1.call(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.callWith(ResourceResolverHelperImpl.java:65) [com.adobe.granite.resourceresolverhelper:1.0.4]
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess.execute(AEMFDWorkflowProcess.java:69) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
18.03.2023 01:54:04.892 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-03-18/labelpdf1_3:/content/dam/formsanddocuments/ntr/nvk.xdp] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step
com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.adobe.granite.workflow.WorkflowException: Error while generation of non interactive PDF
at com.adobe.fd.workflow.internal.common.AEMFDWorkflowProcess.execute(AEMFDWorkflowProcess.java:82) [com.adobe.aemfd.adobe-aemfd-workflow-process:5.0.126]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
... 8 common frames omitted

 

 

Avatar

Employee Advisor

Can you check if all your bundles are in active state?

also how are you starting the AEM server?

if not please follow the installation document to make sure all your bundles are in active state