I see a forward after the execute is called. If this is the same issue as what
I am having, code execution is going back to the first action class rather than
the action class referred to by the forward.
To confirm this you can run it in debug mode and have a break point in the
first action execute method and see if you are getting back to the same action
after the forward.
Thanks,
Prasanth
On 6/14/22 12:23 AM, Rubens Gomes wrote:
I am runnning a Spring Boot 2.7.0 (Latest) Tomcat embedded WAR + Spring Security + Struts
6.0.0 Actions + JSP pages. I started noticing a loop when a Struts2 Action result type
is a "dispatcher" with following repetive stack trace. Then, a stack overflow
is raised.
...... repeated several times ......
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:637)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:140)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:111)
~[spring-web-5.3.20.jar:5.3.20]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:111)
~[spring-web-5.3.20.jar:5.3.20]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:111)
~[spring-web-5.3.20.jar:5.3.20]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:711)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:385)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.security.web.header.HeaderWriterFilter$HeaderWriterRequestDispatcher.forward(HeaderWriterFilter.java:170)
~[spring-security-web-5.7.1.jar:5.7.1]
at
org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:169)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
~[struts2-core-6.0.0.jar:6.0.0]
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)
~[struts2-core-6.0.0.jar:6.0.0]
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:280)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:637)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:140)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:111)
~[spring-web-5.3.20.jar:5.3.20]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:111)
~[spring-web-5.3.20.jar:5.3.20]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:111)
~[spring-web-5.3.20.jar:5.3.20]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:711)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:385)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
~[tomcat-embed-core-9.0.63.jar:9.0.63]
at
org.springframework.security.web.header.HeaderWriterFilter$HeaderWriterRequestDispatcher.forward(HeaderWriterFilter.java:170)
~[spring-security-web-5.7.1.jar:5.7.1]
at
org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:169)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
~[struts2-core-6.0.0.jar:6.0.0]
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)
~[struts2-core-6.0.0.jar:6.0.0]
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:280)
~[struts2-core-6.0.0.jar:6.0.0]
at
org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
~[struts2-core-6.0.0.jar:6.0.0]
---------------------------------------------------------------------
To unsubscribe, e-mail:[email protected]
For additional commands, e-mail:[email protected]