AEM Forms 6.3 - Serverside validation failure | Community
Skip to main content
James_R_Green
December 4, 2018

AEM Forms 6.3 - Serverside validation failure

  • December 4, 2018
  • 3 replies
  • 9304 views

Hi,

I am using the revalidate on server functionality on my form.

The JS I am using on the frontend passes validation and submits, but the serverside revalidation fails.

This is happening on my publish instance running locally.

I can see from the log below that the error is in GuideSubmitServlet, but I cannot get any more information about what is failing, I assume there is something that the GuideSubmitServlet doesn't like in my JS (?).

* Is there anyway to debug this further/ get extra information about what exactly failed e.g. increasing the log level (if so which setting would help with this?)?

* How can I trouble shoot this without the GuideSubmitServlet code?

==> error.log <==

04.12.2018 16:16:35.589 *ERROR* [0:0:0:0:0:0:0:1 [1543940194735] POST   <FORM_NAME>/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.servlet.GuideSubmitServlet Could not complete Submit Action due to Server validation failed.

com.adobe.aemds.guide.service.GuideException: Server validation failed.

  at com.adobe.aemds.guide.servlet.GuideSubmitServlet.doPostPrerequisites(GuideSubmitServlet.java:192)

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

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

  at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149)

  at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:346)

  at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:378)

  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)

04.12.2018 16:16:35.591 *ERROR* [0:0:0:0:0:0:0:1 [1543940194735] POST <FORM_NAME>/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.servlet.GuideSubmitServlet Exception in post request. Server validation failed.

com.adobe.aemds.guide.service.GuideException: Server validation failed.

  at com.adobe.aemds.guide.servlet.GuideSubmitServlet.doPostPrerequisites(GuideSubmitServlet.java:274)

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

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

  at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149)

  at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:346)

Thanks,

Jim

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

3 replies

James_R_Green
December 4, 2018

Also note that there appears to be no guideError or guideErrorList passed back on the request.

James_R_Green
December 4, 2018

Just found this which might help, I will try it out tomorrow:

Debugging Server Side JavaScript

smacdonald2008
December 4, 2018

Let us know if that works.

James_R_Green
December 6, 2018

smacdonald2008

Guidebridge documentation is actually really good and works just fine on the front end. The documentation for the server side re-validation on the other hand is something I haven't been able to find

James_R_Green
December 7, 2018

Hi,

FYI I have re-implemented the revalidation of the JS in my own service instead so that we can debug it.

I think that the documentation would be useful for others looking to use the server side validation feature, it is too much of a black box at the moment.

Thanks,

Jim

Mayank_Gandhi
Adobe Employee
Adobe Employee
December 13, 2018

Khushwant Singh Can you please help here?