Hi everyone
I have gone through the full tutorial: Batch Output of Documents in Adobe Experience Manager (Batch Output of Documents in Adobe Experience Manager), in my localhost AEM 6.5 instance. I used the same demo files that the instructor used during the recording.
Everything worked ok until the PDF generation by the output service.
I am getting an error: Failure running script /etc/fd/watchfolder/scripts/multirecord.ecma: Wrapped
My guess is that User Mapper definition is not ok, but I neither know that for that sure, nor know how to make the right configuration...
I do not know how to make it work.
Help, please!
Here is the full log file:
Failure Time----Wed Dec 04 18:05:47 CST 2019
source location ---- Reason of failure is-----Failure running script /etc/fd/watchfolder/scripts/multirecord.ecma: Wrapped com.adobe.fd.output.internal.exception.OutputServiceException: AEM_OUT_001_003:Unexpected Exception: null (/etc/fd/watchfolder/scripts/multirecord.ecma#42)
Failure running script /etc/fd/watchfolder/scripts/multirecord.ecma: Wrapped com.adobe.fd.output.internal.exception.OutputServiceException: AEM_OUT_001_003:Unexpected Exception: null (/etc/fd/watchfolder/scripts/multirecord.ecma#42)
org.apache.sling.api.scripting.ScriptEvaluationException: Failure running script /etc/fd/watchfolder/scripts/multirecord.ecma: Wrapped com.adobe.fd.output.internal.exception.OutputServiceException: AEM_OUT_001_003:Unexpected Exception: null (/etc/fd/watchfolder/scripts/multirecord.ecma#42)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184)
at com.adobe.aemfd.watchfolder.script.ScriptInputProcessor.doProcess(ScriptInputProcessor.java:72)
at com.adobe.aemfd.watchfolder.util.AbstractSyncInputProcessor.processInputs(AbstractSyncInputProcessor.java:61)
at com.adobe.aemfd.watchfolder.factory.InputProcessorFactory.processInputs(InputProcessorFactory.java:79)
at com.adobe.aemfd.watchfolder.distribution.DistributionListener.process(DistributionListener.java:85)
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:293)
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:229)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.mozilla.javascript.WrappedException: Wrapped com.adobe.fd.output.internal.exception.OutputServiceException: AEM_OUT_001_003:Unexpected Exception: null (/etc/fd/watchfolder/scripts/multirecord.ecma#42)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1893)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen._etc_fd_watchfolder_scripts_multirecord_ecma_6._c_anonymous_1(/etc/fd/watchfolder/scripts/multirecord.ecma:42)
at org.mozilla.javascript.gen._etc_fd_watchfolder_scripts_multirecord_ecma_6.call(/etc/fd/watchfolder/scripts/multirecord.ecma)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:137)
at org.mozilla.javascript.InterfaceAdapter$1.run(InterfaceAdapter.java:83)
at org.mozilla.javascript.Context.call(Context.java:501)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:503)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:86)
at org.mozilla.javascript.jdk13.VMBridge_jdk13$1.invoke(VMBridge_jdk13.java:132)
at com.sun.proxy.$Proxy223.call(Unknown Source)
at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.callWith(ResourceResolverHelperImpl.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen._etc_fd_watchfolder_scripts_multirecord_ecma_6._c_script_0(/etc/fd/watchfolder/scripts/multirecord.ecma:41)
at org.mozilla.javascript.gen._etc_fd_watchfolder_scripts_multirecord_ecma_6.call(/etc/fd/watchfolder/scripts/multirecord.ecma)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
at org.mozilla.javascript.gen._etc_fd_watchfolder_scripts_multirecord_ecma_6.call(/etc/fd/watchfolder/scripts/multirecord.ecma)
at org.mozilla.javascript.gen._etc_fd_watchfolder_scripts_multirecord_ecma_6.exec(/etc/fd/watchfolder/scripts/multirecord.ecma)
at org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine$SlingCompiledScript.eval(RhinoJavaScriptEngine.java:274)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:386)
... 12 more
Caused by: com.adobe.fd.output.internal.exception.OutputServiceException: AEM_OUT_001_003:Unexpected Exception: null
at com.adobe.fd.output.impl.OutputServiceImpl.generatePDFOutputBatch(OutputServiceImpl.java:253)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 39 more
Caused by: java.lang.NullPointerException
at com.adobe.forms.rm.Resource$.using(Resource.scala:68)
at com.adobe.forms.rm.RepositoryResource.$anonfun$source$2(RepositoryResource.scala:69)
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60)
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46)
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33)
at com.adobe.forms.rm.RepositoryResource.source$lzycompute(RepositoryResource.scala:68)
at com.adobe.forms.rm.RepositoryResource.source(RepositoryResource.scala:67)
at com.adobe.forms.model.XFATemplate$TimestampValidationXFATemplate.$anonfun$source$2(XFATemplate.scala:91)
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60)
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46)
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33)
at com.adobe.forms.model.XFATemplate$TimestampValidationXFATemplate.source(XFATemplate.scala:91)
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$paExecute$2(XMLFormServiceImpl.scala:163)
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60)
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46)
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33)
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.paExecute(XMLFormServiceImpl.scala:160)
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplateCacheGen$2(XMLFormServiceImpl.scala:194)
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60)
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46)
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33)
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplateCacheGen(XMLFormServiceImpl.scala:189)
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$3(XMLFormServiceImpl.scala:287)
at com.adobe.forms.cache.ResourceCache.$anonfun$getOrElseUpdate$2(ResourceCache.scala:107)
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60)
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46)
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33)
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate(ResourceCache.scala:97)
at com.adobe.forms.cache.ResourceCache.getOrElseUpdate$(ResourceCache.scala:97)
at com.adobe.forms.cache.impl.PreRenderCacheImpl.getOrElseUpdate(PreRenderCacheImpl.scala:35)
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.$anonfun$resolveTemplate$2(XMLFormServiceImpl.scala:287)
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60)
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46)
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33)
at com.adobe.forms.xtg.impl.XMLFormServiceImpl.resolveTemplate(XMLFormServiceImpl.scala:284)
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.$anonfun$resolvedTemplate$2(LCOptionsXFAInterpreterImpl.scala:135)
at com.adobe.forms.logging.PerfLogger.measure(PerfLogger.scala:60)
at com.adobe.forms.logging.PerfLogger.measure$(PerfLogger.scala:46)
at com.adobe.forms.logging.PerfLogger$.measure(PerfLogger.scala:33)
at com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl.resolvedTemplate(LCOptionsXFAInterpreterImpl.scala:134)
at com.adobe.forms.service.impl.AEMFormsHelperServiceImpl.resolvedTemplate(AEMFormsHelperServiceImpl.scala:53)
at com.adobe.fd.output.internal.NonInteractivePDFRenderService.renderBatch(NonInteractivePDFRenderService.java:93)
at com.adobe.fd.output.impl.OutputServiceImpl.generatePDFOutputBatch(OutputServiceImpl.java:247)
... 44 more