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

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

  • August 10, 2020
  • 9 replies
  • 13030 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

Employee
July 26, 2021

can you please provide the dispatcher logs?

New Participant
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.

Mayank_Gandhi
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

New Participant
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
workflowuserAccepted solution
Employee
August 12, 2020

That is my settings for Apache Sling Referrer Filter

suggest you log a support ticket to get this resolved. 

 

New Participant
August 10, 2020

It works author instance and your publish instance?

 

New Participant
August 10, 2020
yes
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

New Participant
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
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

New Participant
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
Employee
August 10, 2020

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

also can you check your dispatcher logs?

New Participant
August 10, 2020
grep -i "internal" error_log-20200810 (no results)
Employee
August 10, 2020

what is your submit action configured to?

New Participant
August 10, 2020
I have created a customSubmit
New Participant
August 10, 2020

What is your web server?

New Participant
August 10, 2020
REd hat linux