NoSuchMethodError for GuideSubmitUtils.getRedirectParameters on Form submission | Community
Skip to main content
Level 2
January 16, 2025
Solved

NoSuchMethodError for GuideSubmitUtils.getRedirectParameters on Form submission

  • January 16, 2025
  • 4 replies
  • 879 views

I have an AEM Form that submits to a REST endpoint and redirects to a thank-you page. When the form is submitted, I get the following errors (same error twice in a row) and the form data is not submitted to the endpoint. It does redirect to the the thank-you page regardless.

 

16.01.2025 08:42:13.923 *ERROR* [[0:0:0:0:0:0:0:1] [1737034933885] POST /content/forms/af/poster-api-registration/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Error during include of SlingRequestPathInfo: path='/content/forms/af/poster-api-registration/jcr:content/guideContainer', selectorString='post', extension='jsp', suffix='null'
org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: java.lang.NoSuchMethodError: 'java.util.Map com.adobe.aemds.guide.utils.GuideSubmitUtils.getRedirectParameters(org.apache.sling.api.SlingHttpServletRequest)'
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416) [org.apache.sling.scripting.core:2.3.2]
...
Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: java.lang.NoSuchMethodError: 'java.util.Map com.adobe.aemds.guide.utils.GuideSubmitUtils.getRedirectParameters(org.apache.sling.api.SlingHttpServletRequest)'
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:691) [org.apache.sling.scripting.jsp:2.3.6]
...
Caused by: java.lang.NoSuchMethodError: 'java.util.Map com.adobe.aemds.guide.utils.GuideSubmitUtils.getRedirectParameters(org.apache.sling.api.SlingHttpServletRequest)'
at org.apache.jsp.libs.fd.af.components.guidesubmittype.restendpoint.post_POST_jsp._jspService(post_POST_jsp.java:415)
...
16.01.2025 08:42:13.926 *ERROR* [[0:0:0:0:0:0:0:1] [1737034933885] POST /content/forms/af/poster-api-registration/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Exception: javax.servlet.ServletException: java.lang.NoSuchMethodError: 'java.util.Map com.adobe.aemds.guide.utils.GuideSubmitUtils.getRedirectParameters(org.apache.sling.api.SlingHttpServletRequest)'
org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: java.lang.NoSuchMethodError: 'java.util.Map com.adobe.aemds.guide.utils.GuideSubmitUtils.getRedirectParameters(org.apache.sling.api.SlingHttpServletRequest)'
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416) [org.apache.sling.scripting.core:2.3.2]
...
Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: java.lang.NoSuchMethodError: 'java.util.Map com.adobe.aemds.guide.utils.GuideSubmitUtils.getRedirectParameters(org.apache.sling.api.SlingHttpServletRequest)'
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:691) [org.apache.sling.scripting.jsp:2.3.6]
...
Caused by: java.lang.NoSuchMethodError: 'java.util.Map com.adobe.aemds.guide.utils.GuideSubmitUtils.getRedirectParameters(org.apache.sling.api.SlingHttpServletRequest)'
at org.apache.jsp.libs.fd.af.components.guidesubmittype.restendpoint.post_POST_jsp._jspService(post_POST_jsp.java:415)
...
16.01.2025 08:42:13.929 *INFO* [[0:0:0:0:0:0:0:1] [1737034933885] POST /content/forms/af/poster-api-registration/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aem.transaction.core.impl.TransactionRecorder transactionCount=1 transactionType=SUBMIT transactionSubType=null resourceType=FORM resourceSubType=ADAPTIVE-FORM serviceId=null operationId=null resourceId=/content/forms/af/poster-api-registration/jcr:content/guideContainer resourceName=Poster API Registration internalService=null internalOperation=null startTime=1737034933890 endTime=1737034933929
1

 

Best answer by Pulkit_Jain_

@wizard04wsu 

This is a known issue due to a recent change in the getRedirectParam method so it's well documented here[0] along with the mitigation steps.

As a cheap trick, you can add a space/extra character in the REST endpoint post jsp that would reset the cache.

Let me know if the issue persists.

 

[0] - https://experienceleague.adobe.com/en/docs/experience-manager-65/content/release-notes/service-pack/6-5-19#:~:text=When%20users%20perform%20the%20submit%20action%2C%20the%20submission%20fails%20with%20an%20error%3A%0Ajavax.servlet.ServletException%3A%20java.lang.NoSuchMethodError%0ATo%20resolve%20the%20issue%2C%20recompile%20the%20Sling%20scripts%20such%20as%20JSP%2C%20Java%E2%84%A2%2C%20and%20Sightly.%20(FORMS%2D8542) 

4 replies

Level 7
January 16, 2025

Hi @wizard04wsu 

You are getting the run time error. Cehck all your bundles are active or not.

 

Level 2
January 16, 2025

I have seven bundles with status "Fragment". The rest are active.

503 Adobe - XMPFiles Worker platform fragment linuxcom.adobe.xmp.worker.files.native.fragment.linux 1.0.10 Fragment
504 Adobe - XMPFiles Worker platform fragment macosxcom.adobe.xmp.worker.files.native.fragment.macosx 1.0.10 Fragment
505 Adobe - XMPFiles Worker platform fragment wincom.adobe.xmp.worker.files.native.fragment.win 1.0.10 Fragment
671 AEMDS xerces fragment for day-commons-jstladobe-aemds-core-xerces-fragment 1.0.8 Fragment
71 Day Communique 5 License Brandingcom.day.cq.cq-licensebranding 6.5.2 cq5 Fragment
750 JJWT :: Extensions :: Jacksonio.jsonwebtoken.jjwt-jackson 0.11.2 Fragment
749 JJWT :: Implio.jsonwebtoken.jjwt-impl 0.11.2 Fragment

Adobe Employee
January 17, 2025

Hi @wizard04wsu,

 

Could you please try to install the AEM Forms Add-on Package and post restart check if the fragments are resolved?

 

Thanks

Adobe Employee
January 17, 2025

Hello @wizard04wsu 

 

Please try bringing up all the bundles and if the issue is not resolved after installing the AEM Forms addon and restarting the server, you can recompile the JSPs which should help resolving the issue.

 

Thanks,

Rahul Pandey

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
January 21, 2025

@wizard04wsu 

This is a known issue due to a recent change in the getRedirectParam method so it's well documented here[0] along with the mitigation steps.

As a cheap trick, you can add a space/extra character in the REST endpoint post jsp that would reset the cache.

Let me know if the issue persists.

 

[0] - https://experienceleague.adobe.com/en/docs/experience-manager-65/content/release-notes/service-pack/6-5-19#:~:text=When%20users%20perform%20the%20submit%20action%2C%20the%20submission%20fails%20with%20an%20error%3A%0Ajavax.servlet.ServletException%3A%20java.lang.NoSuchMethodError%0ATo%20resolve%20the%20issue%2C%20recompile%20the%20Sling%20scripts%20such%20as%20JSP%2C%20Java%E2%84%A2%2C%20and%20Sightly.%20(FORMS%2D8542)