Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

There was issue in invoking the Forms and Document Workflow.

Avatar

Level 3

I am trying to invoke a forms workflow whenwe submit a adaptive form. I made the configurations as shown below

Perform the following steps to enable your AEM forms server to submit data to an AEM Forms on JEE server:

  1. Go to AEM web configuration console at http://[host]:[port]/system/console/configMgr.
  2. Locate and click the Adobe LiveCycle Client SDK Configuration component.
  3. Click to edit the configuration server URL, username, and password for the AEM Forms on JEE server.
  4. Review the settings and click Save.

I am able to see the process in the drop down But when i submit the Form it is throwing an exception

1834320_pastedImage_0.png

Can any one suggest What else need to be done

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Our documentation here[0] implicitly assumes that the Developer must have:

- Changed the "Require callers to authenticate" to "No" for the service created for this application/process as below:

Adminui > Home > Services > Applications and Services > Services Management > "Your Application" > Security (other tabs are Pooling, Endpoint)> Require callers to authenticate- change to "No".

- Added the service (MyApplication/processes/NameOfProcess) to the list- Services Names, which should be invoked as system user by default in the "Livecycle Client SDK configuration" under configMgr.

[0] Configuring AEM Forms to submit form data to an AEM Forms on JEE process

View solution in original post

0 Replies

Avatar

Employee

Did you define the appropriate article bout parameters in your process?

Avatar

Level 3

Yes i define dataxml and fileAttachmentsList. In the process also i used them as inputs. So iam able to see the process in submit action

Avatar

Employee

Have you whitelisted sun.util.com packages?

Avatar

Level 3

211074 LOG Making DSC call to system.service_registry.getHeadActiveConfiguration

231355 LOG Successfully Completed the DSC call to Server at http://wdvra98a0814.wellsfargo.com:8080

231359 TIMER_END{20288,DSC}

231540 TIMER_START{DSC}

231546 LOG Making DSC call to MyApplication2/Config_OSGi.invoke

255620 LOG Failed to complete the DSC call to Server at http://wdvra98a0814.wellsfargo.com:8080

255623 TIMER_END{24082,DSC}

Avatar

Employee

what  is the security setting for the process that you are trying to invoke

for testing purposes can you remove the security on the process from admin UI

Avatar

Employee

for testing purposes can you try invoking the process from JSP page. The following code should get you started

String processName = "AemForms/Processes/GetData";                 

com.adobe.livecycle.dsc.clientsdk.ServiceClientFactoryProvider scfp = sling.getService(com.adobe.livecycle.dsc.clientsdk.ServiceClientFactoryProvider.class);

com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory = scfp.getDefaultServiceClientFactory();

// this is for passing parameters to your workbench process

Map paramsMap = new HashMap();

paramsMap.put("name",request.getParameter("name"));

com.adobe.idp.dsc.InvocationRequest ir = serviceClientFactory.createInvocationRequest(processName,"invoke",paramsMap,true);

// in the above code we are invoking a short lived process, hence the last parameter is true

ir.setProperty(com.adobe.livecycle.dsc.clientsdk.InvocationProperties.INVOKER_TYPE,com.adobe.livecycle.dsc.clientsdk.InvocationProperties.INVOKER_TYPE_SYSTEM);

com.adobe.idp.dsc.InvocationResponse invocationResponse = serviceClientFactory.getServiceClient().invoke(ir);

String content = (String)invocationResponse.getOutputParameter("data"));

Avatar

Level 3

I am not getting the point of JSP page. I am little new to this LC process

Avatar

Level 3

Can you provide me a step by step process to try

Avatar

Employee

you can create custom submit and in the custom submit use the code that I gave you in the previous reply

Custom Submit in Adaptive Forms

Avatar

Employee Advisor

Let's start from scratch:

As you are able to see the process in the drodown it means settings are configured correctly. What was the result when you updated the security setting for the process. Did you set it to invoker and try?

Share server,access and error log snippet when you invoke the process.

Avatar

Level 3

Yes Mayank

I have selected the Process name and submitted the Form.

In the Process i selected the security to be No and Invoker.

Still i am seeing the same issue

Will attach the Logs

Avatar

Level 3

23.09.2019 10:42:29.231 *ERROR* [172.31.179.83 [1569249748966] POST /lc/content/forms/af/ops_test_1/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] libs.fd.afaddon.components.actions.lcprocess.post$POST$jsp There was issue in invoking the Forms and Document Workflow.

23.09.2019 10:42:29.233 *ERROR* [172.31.179.83 [1569249748966] POST /lc/content/forms/af/ops_test_1/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.servlet.GuideSubmitServlet Could not complete Submit Action due to Response already committed

java.lang.IllegalStateException: Response already committed

at org.apache.sling.engine.impl.request.SlingRequestDispatcher.forward(SlingRequestDispatcher.java:127)

at com.day.cq.wcm.core.impl.WCMComponentFilter$ForwardRequestDispatcher.forward(WCMComponentFilter.java:503)

at com.adobe.aemds.guide.servlet.GuideSubmitServlet.sendErrorBackToClient(GuideSubmitServlet.java:601)

at com.adobe.aemds.guide.servlet.GuideSubmitServlet.doSubmit(GuideSubmitServlet.java:366)

at com.adobe.aemds.guide.servlet.GuideSubmitServlet.doPost(GuideSubmitServlet.java:561)

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.doFilterWithErrorHandling(WCMDebugFilter.java:192)

at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:159)

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.assetlinkshare.AdhocAssetShareAuthHandler.doFilter(AdhocAssetShareAuthHandler.java:437)

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.day.cq.dam.core.impl.servlet.ActivityRecordHandler.doFilter(ActivityRecordHandler.java:154)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.cq.dam.cfm.impl.servlets.CompatFilter.doFilter(CompatFilter.java:81)

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:134)

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:367)

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.aemforms.setvalue.core.filters.LoggingFilter.doFilter(LoggingFilter.java:56)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.livecycle.process.reporting.servlet.filter.ProcessReportingResourceResolverFilter.doFilter(ProcessReportingResourceResolverFilter.java:70)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.livecycle.lccomponent.util.LcComponentResourceResolverFilter.doFilter(LcComponentResourceResolverFilter.java:54)

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 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:221)

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:221)

at com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet.doFilter(CoreFormHandlingServlet.java:131)

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:83)

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 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.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 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.felix.http.base.internal.dispatch.Dispatcher$1.doFilter(Dispatcher.java:146)

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:847)

at org.apache.felix.http.bridge.internal.BridgeActivator$1.service(BridgeActivator.java:86)

at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:123)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:286)

at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:174)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

at org.jboss.as.web.security.SubjectInfoSetupValve.invoke(SubjectInfoSetupValve.java:34)

at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:656)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)

at java.lang.Thread.run(Thread.java:748)

Avatar

Employee Advisor

Please confirm AEM forms version with CFP?

Avatar

Level 3
PDF Generator6.3.0AEMForms-6.3.0-0028;AEMForms-6.3.0-0036
Barcoded Forms6.3.0N/A
Acrobat Reader DC Extensions6.3.0AEMForms-6.3.0-0028;AEMForms-6.3.0-0036
Document Security6.3.0AEMForms-6.3.0-0028;AEMForms-6.3.0-0036
Forms workflow6.3.0AEMForms-6.3.0-0028;AEMForms-6.3.0-0036
Digital Signatures6.3.0AEMForms-6.3.0-0028;AEMForms-6.3.0-0036
PDF Forms6.3.0AEMForms-6.3.0-0028;AEMForms-6.3.0-0036
Output6.3.0AEMForms-6.3.0-0028;AEMForms-6.3.0-0036
Content Repository6.3.0N/A

Avatar

Level 3

Version 6.3.0, GMService Pack Version: N/APatch Version: AEMForms-6.3.0-0036

Avatar

Employee

suggest you log a support ticket to get this resolved.

Avatar

Level 3

I also did that

Adobe CQ Ticket : 192560 - There was issue in invoking the Forms and Document Workflow.  --  **Do not reply**

Avatar

Correct answer by
Employee Advisor

Our documentation here[0] implicitly assumes that the Developer must have:

- Changed the "Require callers to authenticate" to "No" for the service created for this application/process as below:

Adminui > Home > Services > Applications and Services > Services Management > "Your Application" > Security (other tabs are Pooling, Endpoint)> Require callers to authenticate- change to "No".

- Added the service (MyApplication/processes/NameOfProcess) to the list- Services Names, which should be invoked as system user by default in the "Livecycle Client SDK configuration" under configMgr.

[0] Configuring AEM Forms to submit form data to an AEM Forms on JEE process