I enabled trace logging on "org.apache.struts2" and "com.opensymphony", and below are the repetive logs that I see. Again, the action returns NONE which maps to "dispatcher" type:
2022-06-15 22:48:35,853 DEBU c.e.w.s.a.u.RegisterUserAccountAction - cancel button pressed: returning NONE 2022-06-15 22:48:35,853 TRAC c.o.x.DefaultActionInvocation - Creating result related to resultCode [none] 2022-06-15 22:48:35,855 DEBU c.o.x.ObjectFactory - Injecting internal beans into [ServletDispatcherResult] 2022-06-15 22:48:35,855 DEBU c.o.x.o.SecurityMemberAccess - Checking access for [target: org.apache.struts2.result.ServletDispatcherResult@7a8dce1c, member: public void org.apache.struts2.result.StrutsResultSupport.setLocation(java.lang.String), property: location] 2022-06-15 22:48:35,856 DEBU c.o.x.o.SecurityMemberAccess - Checking access for [target: org.apache.struts2.result.ServletDispatcherResult@7a8dce1c, member: public void org.apache.struts2.result.StrutsResultSupport.setLocation(java.lang.String), property: location] 2022-06-15 22:48:35,856 DEBU o.a.s.r.ServletDispatcherResult - Forwarding to location: /index.do 2022-06-15 22:48:35,856 DEBU c.o.x.c.i.InstantiatingNullHandler - Entering nullPropertyValue [target=[com.ezlista.web.struts2.action.useraccount.RegisterUserAccountAction@3d105631, com.opensymphony.xwork2.DefaultTextProvider@106c9059], property=struts] 2022-06-15 22:48:35,857 TRAC o.a.s.d.f.StrutsPrepareAndExecuteFilter - Checking if /index.do is a static resource 2022-06-15 22:48:35,858 TRAC o.a.s.d.f.StrutsPrepareAndExecuteFilter - Assuming uri /index.do as a normal action 2022-06-15 22:48:35,859 TRAC o.a.s.d.f.StrutsPrepareAndExecuteFilter - Found mapping ActionMapping{name='index', namespace='/', method='null', extension='do', params={}, result=null} for /index.do 2022-06-15 22:48:35,859 DEBU c.o.x.DefaultActionInvocation - Executing action method = execute 2022-06-15 22:48:35,859 DEBU c.o.x.o.SecurityMemberAccess - Checking access for [target: com.ezlista.web.struts2.action.useraccount.RegisterUserAccountAction@3d105631, member: public java.lang.String com.ezlista.web.struts2.action.useraccount.RegisterUserAccountAction.execute(), property: null] 2022-06-15 22:49:07,043 DEBU o.a.j.l.DirectJDKLog - Start expire sessions StandardManager at 1655351347042 sessioncount 2 2022-06-15 22:49:07,044 DEBU o.a.j.l.DirectJDKLog - End expire sessions StandardManager processingTime 1 expired sessions: 0 ________________________________________ From: Rubens Gomes <rubens_go...@hotmail.com> Sent: Tuesday, June 14, 2022 11:38 AM To: Struts Users Mailing List Subject: Re: StackOverflowError this happens for the result Action.NONE below. If I change "dispatcher" to "redirect" it works. @Results( { @Result( name = { Action.INPUT, Action.ERROR }, location = "/WEB-INF/content/%{#request.device}/useraccount/register.jsp", type = "dispatcher" ), @Result( name = Action.NONE, location = "/index.do", type = "dispatcher" ), @Result( name = Action.SUCCESS, location = "/secure/addressbook/address-book.do", type = "redirect" ) } ) //@formatter:on @Namespace( "/useraccount" ) @Slf4j public class RegisterUserAccountAction extends BaseActionSupport implements ServletRequestAware, ServletResponseAware ________________________________________ From: Lukasz Lenart <lukaszlen...@apache.org> Sent: Tuesday, June 14, 2022 1:02 AM To: Struts Users Mailing List Subject: Re: StackOverflowError Could you share a minimal configuration of this result? Regards Łukasz wt., 14 cze 2022 o 07:23 Rubens Gomes <rubens_go...@hotmail.com> napisał(a): > > 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: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org