我已经尝试使用AEM-ODGi com.adobe.fd.assembler.service.AssemblerService组装2个PDF(也尝试使用XDP),但遇到了以下异常。
这是我如何调用AssemblerService的信息:
AssemblerResult result = assemblerService.invoke(ddxDocument,inputDocuments, assemblerOptionSpec);
ddxDocument->作为此变量的一部分,在DDX格式的文档下面传递:
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<XDP result="MyXDPResult">
<XDP source="sourceXDP1"/>
<XDP source="sourceXDP2"/>
<XDP source="sourceXDP3"/>
</XDP>
</DDX>
inputDocuments作为此变量的一部分,以源文件名作为键,而Map作为值Object传递Map。
能否请您帮我解决此问题
java.lang.RuntimeException: Exception occurred while merging documents for preview - AEM - ASM - S00 - 002: Failed to execute the DDX - error messages provided.
at com.cdk.eforms.osgi.core.servlets.AssemblerServiceServlet.assembleDocuments(AssemblerServiceServlet.java: 130)
at com.cdk.eforms.osgi.core.servlets.AssemblerServiceServlet.doPost(AssemblerServiceServlet.java: 77)
at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java: 146)
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java: 342)
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java: 374)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java: 552)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java: 44)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 77)
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java: 156)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java: 375)
at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java: 190)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.wcm.core.impl.PageLockFilter.doFilter(PageLockFilter.java: 91)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java: 96)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java: 282)
at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java: 49)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 71)
at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java: 109)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet.doFilter(SaferSlingPostServlet.java: 126)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.dam.core.impl.servlet.ActivityRecordHandler.doFilter(ActivityRecordHandler.java: 154)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 73)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 73)
at com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler.doFilter(AdhocAssetShareAuthHandler.java: 437)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.granite.rest.impl.servlet.ApiResourceFilter.doFilter(ApiResourceFilter.java: 70)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.granite.requests.logging.impl.RequestLoggerImpl.doFilter(RequestLoggerImpl.java: 121)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter.doFilter(AssetContentDispositionFilter.java: 96)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.granite.csrf.impl.CSRFFilter.doFilter(CSRFFilter.java: 217)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.java: 372)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java: 248)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.cdk.eforms.osgi.core.filters.LoggingFilter.doFilter(LoggingFilter.java: 50)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.cdk.eforms.aem.core.filters.LoggingFilter.doFilter(LoggingFilter.java: 56)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.livecycle.content.appcontext.impl.AppContextFilter.doFilter(AppContextFilter.java: 69)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java: 107)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 73)
at com.adobe.livecycle.dsc.clientsdk.internal.ResourceResolverHolderFilter.doFilter(ResourceResolverHolderFilter.java: 37)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.cq.social.commons.cors.CORSAuthenticationFilter.doFilter(CORSAuthenticationFilter.java: 91)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java: 226)
at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java: 138)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java: 76)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java: 226)
at com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet.doFilter(CoreFormHandlingServlet.java: 126)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.fd.core.security.internal.CurrentUserServiceImpl.doFilter(CurrentUserServiceImpl.java: 114)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java: 90)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java: 122)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker.doFilter(CampaignCopyTracker.java: 100)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java: 87)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java: 81)
at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java: 60)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java: 131)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.security.impl.ContentDispositionFilter.doFilter(ContentDispositionFilter.java: 152)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 73)
at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.doFilter(ResourceResolverHelperImpl.java: 83)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java: 68)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java: 151)
at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java: 234)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java: 120)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 86)
at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java: 328)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java: 135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 81)
at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java: 308)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java: 135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 81)
at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java: 96)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java: 135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 81)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java: 131)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java: 135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 81)
at org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java: 116)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java: 135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 81)
at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java: 72)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java: 135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 81)
at org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.doFilter(RequestParameterSupportConfigurer.java: 63)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java: 135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java: 81)
at org.apache.felix.http.base.internal.dispatch.Dispatcher$1.doFilter(Dispatcher.java: 147)
at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager.invokePreprocessors(WhiteboardManager.java: 1000)
at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java: 91)
at org.apache.felix.http.base.internal.dispatch.DispatcherServlet.service(DispatcherServlet.java: 49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java: 725)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java: 848)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java: 584)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java: 224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java: 1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: 512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java: 185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java: 1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java: 141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java: 213)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java: 134)
at org.eclipse.jetty.server.Server.handle(Server.java: 534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java: 333)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java: 251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java: 283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java: 108)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java: 93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java: 303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java: 148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java: 136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java: 671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java: 589)
at java.lang.Thread.run(Thread.java: 748)