[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form | Community
Skip to main content
Level 2
August 10, 2020
Solved

[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form

  • August 10, 2020
  • 9 replies
  • 13032 views

 

Hi AEM Adaptive form Guru's

Highlighted in red is where I am getting error when browser from dispatcher

 

Note: I have checked similar questions in AEM forums and it is not helping resolve the issue.

 

Environment : AEM 6.5 

Author | Publish | Dispatcher  environment

Adaptive form works in Author | Adaptive form works in publish | Error when click on submit in AF when I use hostname (from Dispatcher)

[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form

 

Accessing adaptive form from Dispatcher using the hostname does not work.  When I click on submit in the AF form  I get the following error.  I have just used on textbox and one submit button in AF(Adaptive form) 

 

When I check the Network/Console of the browser I see the following errors

Post http:/sdfjlsjflsjdlfsfd.com/content/forms/af/wtc/testing/jcr:content/guideContainer.af.internalsubmit.jsp 404 (Not Found)

I have commented whole of dispatcher filter file and allowed everything, still I get the internal error.

Did anyone face this issue.  

Let me know if you need any additional information.

 

Regards

Dilip

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by workflowuser

That is my settings for Apache Sling Referrer Filter

suggest you log a support ticket to get this resolved. 

 

9 replies

Level 8
August 10, 2020

What is your web server?

Level 2
August 10, 2020
REd hat linux
Adobe Employee
August 10, 2020

what is your submit action configured to?

Level 2
August 10, 2020
I have created a customSubmit
Adobe Employee
August 10, 2020

Can you provide the screen shot of your form submission configuration?

also can you check your dispatcher logs?

Level 2
August 10, 2020

grep -i "interal" dispatcher.log

[Sun Aug 09 21:32:09 2020] [I] [pid 23745] "POST /content/forms/af/wtc/contact-us/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 8ms [publishfarm/-] [Sun Aug 09 21:32:12 2020] [I] [pid 23745] "POST /content/forms/af/wtc/contact-us/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 8ms [publishfarm/-] [Sun Aug 09 21:40:33 2020] [I] [pid 23509] "POST /content/forms/af/wtc/basicform/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 7ms [publishfarm/-] [Sun Aug 09 21:40:37 2020] [I] [pid 23509] "POST /content/forms/af/wtc/basicform/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 7ms [publishfarm/-] [Sun Aug 09 21:40:41 2020] [I] [pid 23509] "POST /content/forms/af/wtc/basicform/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 8ms [publishfarm/-] [Sun Aug 09 22:44:26 2020] [I] [pid 118904] "GET /etc.clientlibs/wtc/clientlibs/resources/icons/svg/InternalIcon_Black.svg" - - 0ms [publishfarm/-] [Sun Aug 09 22:44:26 2020] [I] [pid 23647] "GET /etc.clientlibs/wtc/clientlibs/resources/icons/svg/InternalIcon_White.svg" - - 1ms [publishfarm/-] [Sun Aug 09 22:44:35 2020] [I] [pid 23742] "POST /content/forms/af/wtc/contact-us/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 8ms [publishfarm/-] [Sun Aug 09 22:44:48 2020] [I] [pid 23647] "POST /content/forms/af/wtc/contact-us/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 8ms [publishfarm/-] [Mon Aug 10 00:30:32 2020] [I] [pid 15214] "GET /etc.clientlibs/wtc/clientlibs/resources/icons/svg/InternalIcon_Black.svg" - - 0ms [publishfarm/-] [Mon Aug 10 00:30:32 2020] [I] [pid 15214] "GET /etc.clientlibs/wtc/clientlibs/resources/icons/svg/InternalIcon_White.svg" - - 0ms [publishfarm/-] [Mon Aug 10 00:30:49 2020] [I] [pid 15593] "POST /content/forms/af/wtc/contact-us/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 9ms [publishfarm/-] [Mon Aug 10 00:48:55 2020] [I] [pid 118904] "POST /content/forms/af/wtc/testing/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 9ms [publishfarm/-] [Mon Aug 10 00:49:23 2020] [I] [pid 15214] "POST /content/forms/af/wtc/testing/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 7ms [publishfarm/-] [Mon Aug 10 00:49:39 2020] [I] [pid 10255] "POST /content/forms/af/wtc/testing/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 8ms [publishfarm/-] [Mon Aug 10 02:08:20 2020] [I] [pid 23750] "POST /content/forms/af/wtc/testing/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 11ms [publishfarm/-] [Mon Aug 10 02:32:59 2020] [I] [pid 31733] "POST /content/forms/af/wtc/testing/jcr:content/guideContainer.af.internalsubmit.jsp" ! - 8ms [publishfarm/-]

Adobe Employee
August 10, 2020

can you put a simple System.out.println statement in your jsp and see if that is being written to AEM server log

Level 2
August 10, 2020
I do not think the dispatcher request is coming till jsp as per the console error it is stopping at internalSubmit.jsp
Adobe Employee
August 10, 2020

also can you confirm if you have servlet mounted on /bin/storeafsubmission path. can you check by using the servlet resolver from web console

Level 2
August 12, 2020
I am able to narrow down the problem to host header issue for that this is what I have done a) added the host name in Apache Sling Referrer Filter Configure the referrer filter service: Log in to the Apache Felix configuration manager as an administrator. The Default URL of the configuration manager is https://[server]:[port_number]/system/console/configMgr . In the Configurations menu, select the Apache Sling Referrer Filter option. In the Allow Hosts field, enter host name of the dispatcher to allow it as a referrer and click Save . The format of the entry is `https:// #: #'. Can you please guide me on is there something I need to do on the dispatcher site as well? Regards Dilip
Level 8
August 10, 2020

It works author instance and your publish instance?

 

Level 2
August 10, 2020
yes
workflowuserAdobe EmployeeAccepted solution
Adobe Employee
August 12, 2020

That is my settings for Apache Sling Referrer Filter

suggest you log a support ticket to get this resolved. 

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
August 12, 2020

@dilips50359074 Lets start with the basic test here, does Out of the box email submit works on dispatcher? Also, test if Form portal submit action works

Level 2
August 12, 2020
Hi Mayank, so here is the thing a) Adaptive form submit action work from author and publisher ... b) Adaptive form submit action does not work from hostname c) My requirement does not have to send email
Adobe Employee
July 26, 2021

can you please provide the dispatcher logs?

July 26, 2021

This is the only error that I see in the browser network tab and in the console error: csrf.min.js:formatted:141 GET https://sdfasdf.sdfsdfsdf.com/content/forms/af/mpsers/jcr:content/guidecontainer.af.internalsubmit.jsp 404 (Not Found) but in author and publisher it works as expected.