SAP Knowledge Base Article - Preview

3459262 - "404 - Not Found" error Or Page request Mapping not found issue occurs after upgrading to 2211.21

Symptom

After migrating to 2211.21, the storefront request may have below issues:

1. Return 404 (- not found) error or the web frontend page may show "Page Not Found". But this issue did not happen in previous version.

From the backend or Dynatrace mornitoring, we can see below 404 error log stack trace:

Exception:
javax.servlet.http.HttpServletResponse.setStatus
Message:
HTTP 404 setStatus called
Stacktrace:
org.apache.catalina.connector.ResponseFacade.setStatus(ResponseFacade.java)
javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:189)
javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:189)
javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:189)
javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:189)
javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:189)
<***custom_storefront_extension***>.hybris.storefront.controllers.pages.DefaultPageController.get(DefaultPageController.java:75)
jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:568)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:903)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:809)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
javax.servlet.http.HttpServlet.service(HttpServlet.java:529)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
... ...

2. Or the page mapping cannot be found, in the logs, there might be this message:

"No mapping for GET /XXX/XXX"

 


Read more...

Environment

SAP Commerce Cloud 2211, patch 21+

Product

SAP Commerce Cloud 2211

Keywords

404, 404 - Not Found, No mapping for GET, upgrade 2211.21, Tomcat 9, Servlet 4 , KBA , CEC-SCC-COM-BCA-ACC , B2C Accelerator , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.