Re: StackOverflowError

2022-06-21 Thread Lukasz Lenart
wt., 21 cze 2022 o 11:56 Prasanth  napisał(a):
>
> I need an id added to the link as a param (coming from prior action), so
> have used a JSP forward. If I use redirect type and specify the url in
> the struts.xml itself would I be able to specify the dynamic id provided
> by prior action?

Here you have a few examples
https://struts.apache.org/core-developers/redirect-action-result
basically you just need to specify ID param with a reference to a getter:




dashboard
/secure
${id} // -> it will call action's getId()





Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: StackOverflowError

2022-06-21 Thread Prasanth
I need an id added to the link as a param (coming from prior action), so 
have used a JSP forward. If I use redirect type and specify the url in 
the struts.xml itself would I be able to specify the dynamic id provided 
by prior action?


Thanks,
Prasanth

On 2022-06-21 00:11, Lukasz Lenart wrote:
wt., 21 cze 2022 o 04:31 Prasanth  
napisał(a):

Would there be a release based on this? If not what is the best way to
include a new swingset jar into Maven build for a project?


Yes, I'm working on a fix. And if you cannot use "redirect" result
instead of "dispatcher" in such case, you must wait with migration
till a patch will be released.


Regards


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: StackOverflowError

2022-06-20 Thread Lukasz Lenart
wt., 21 cze 2022 o 04:31 Prasanth  napisał(a):
> Would there be a release based on this? If not what is the best way to
> include a new swingset jar into Maven build for a project?

Yes, I'm working on a fix. And if you cannot use "redirect" result
instead of "dispatcher" in such case, you must wait with migration
till a patch will be released.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: StackOverflowError

2022-06-20 Thread Prasanth

Hi,

Would there be a release based on this? If not what is the best way to 
include a new swingset jar into Maven build for a project?


Thanks,
Prasanth

On 2022-06-15 04:09, Lukasz Lenart wrote:

Fix is ready
https://github.com/apache/struts/pull/571

śr., 15 cze 2022 o 10:14 Lukasz Lenart  
napisał(a):


I have registered an issue [1], it's related to added support for 
Async Actions


[1] https://issues.apache.org/jira/browse/WW-5190


Regards
--
Łukasz


wt., 14 cze 2022 o 18:38 Rubens Gomes  
napisał(a):

>
> 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 
> 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  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.Heade

Re: StackOverflowError

2022-06-15 Thread Rubens Gomes
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 
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 
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  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

Re: StackOverflowError

2022-06-15 Thread Lukasz Lenart
Fix is ready
https://github.com/apache/struts/pull/571

śr., 15 cze 2022 o 10:14 Lukasz Lenart  napisał(a):
>
> I have registered an issue [1], it's related to added support for Async 
> Actions
>
> [1] https://issues.apache.org/jira/browse/WW-5190
>
>
> Regards
> --
> Łukasz
>
>
> wt., 14 cze 2022 o 18:38 Rubens Gomes  napisał(a):
> >
> > 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 
> > 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  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(A

Re: StackOverflowError

2022-06-15 Thread Lukasz Lenart
I have registered an issue [1], it's related to added support for Async Actions

[1] https://issues.apache.org/jira/browse/WW-5190


Regards
--
Łukasz


wt., 14 cze 2022 o 18:38 Rubens Gomes  napisał(a):
>
> 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 
> 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  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.

Re: StackOverflowError

2022-06-14 Thread Rubens Gomes
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 
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  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 
> 

Re: StackOverflowError

2022-06-14 Thread Prasanth

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

Re: StackOverflowError

2022-06-14 Thread Martin Gainty
Hi Rubens
Do you see any of these messages

Request {} is excluded from handling by Struts, passing request to other filters
-OR-
Assuming uri {} as a normal action
-OR-
Cannot find mapping for {}, passing to other filters
-OR-
Found mapping {} for {}

will need to see the configuration that Lukasz requested

BR

From: Lukasz Lenart 
Sent: Tuesday, June 14, 2022 2: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  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

Re: StackOverflowError

2022-06-13 Thread Lukasz Lenart
Could you share a minimal configuration of this result?

Regards
Łukasz

wt., 14 cze 2022 o 07:23 Rubens Gomes  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)
>  ~[tomc

StackOverflowError

2022-06-13 Thread Rubens Gomes
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 

Re: action tag with tile result causing StackOverflowError-

2016-11-28 Thread Christoph Nenning
You can file struts bugs here:

https://issues.apache.org/jira/browse/WW/


Regards,
Christoph



> From: Vishal Jhagadiawala 
> To: Struts Users Mailing List , 
> Date: 25.11.2016 20:04
> Subject: Re: action tag with tile result causing StackOverflowError-
> 
> Thanks Christoph for suggestion, That's best way to do it, 
> In my application I have lots of nested content, which is called by 
>  along with tiles result. 
> 
> The code worked fine upto struts 2.2.1.1 and tiles 2.0.6 versions. 
> after upgrading exactly same usage goes into infinite loop. and to 
> refactor application it will be a big effort. 
> 
> is there anyway to open jira ticket, as this is reproducible so it 
> can be tracked. 
> 
> 
> Regards,
> Vishal
> 
> 
> 
> On Tuesday, 22 November 2016, 3:37, Christoph Nenning 
>  wrote:
> 
> 
>  In our apps we do similar things in a different way.
> 
> 
> Our Tiles definition for layout looks like this:
> 
> 
> 
> 
> 
> 
> 
> 
> Inside layout.jsp we insert the content provided by action like this:
> 
> 
> 
> 
> 
> 
> 
> Actions provide content by using annotations:
> 
> @TilesDefinition(
> extend=".layout",
> putAttributes={
> @TilesPutAttribute(name="title", value="titel"),
> @TilesPutAttribute(name="content",value="content.jsp")
> }
> )
> 
> 
> 
> Hope that helps!
> 
> 
> 
> Regards,
> Christoph
> 
> 
> 
> 
> 
> > From: Vishal Jhagadiawala 
> > To: Struts Users Mailing List , 
> > Date: 21.11.2016 16:14
> > Subject: Re: action tag with tile result causing StackOverflowError-
> > 
> > Hi Christoph,
> > Please find my response below. 
> > 
> > Here is my actionTileResult.jsp (it is for test)
> > actionResult.jsp
> > This is text :
> > 
> > 
> > 
> > 
> > - how should showcase.index.actionResult and showcase.index belong to 
> each 
> > other?  showcase.index is a global layout, and there are dynamic 
> > pages based on action outcome eg . showcase.index.actionResult will 
> > be included in the global layout
> > 
> > - shouldn't showcase.index.actionResult set the body attribute?
> > currently to reproduce the issue, I have used title attribute, but 
> > we tile definition can be more specific based on need
> > 
> > - why is there an  tag in layout.jsp?  this is to 
> > include dynamic result based on outcome of the action logic. 
> > 
> > 
> > Regards,
> > Vishal
> > 
> >On Monday, 21 November 2016, 4:19, Christoph Nenning 
> >  wrote:
> > 
> > 
> >  Hi,
> > 
> > 
> > some questions about your code snippets:
> > 
> > - how does actionResult.jsp look?
> > - how should showcase.index.actionResult and showcase.index belong to 
> each 
> > other?
> > - shouldn't showcase.index.actionResult set the body attribute?
> > - why is there an  tag in layout.jsp?
> > 
> > 
> > Regards,
> > Christoph
> > 
> > 
> > 
> > > From: Vishal Jhagadiawala 
> > > To: Struts Users Mailing List , 
> > > Date: 19.11.2016 20:55
> > > Subject: Re: action tag with tile result causing StackOverflowError-
> > > 
> > > Hi ,
> > > I also verified the exactly same error happens in struts 2.5.5 with 
> > > tiles 3.0.7.
> > > if we try to use action tag as below with tiles result it's goes in 
> > > infinite loop and throws it throws java.lang.StackOverflowError,
> > >  executeResult="true"/>
> > > 
> > > Layout.jsp 
> > > 
> > >  Notice that this is a layout
> > > made in JSP > > name="myTestAction" namespace="/tiles" 
> > executeResult="true"/>
> > > 
> > > - struts.xml  
> > > showcase.index.actionResult  
> > > showcase.index.actionResult > > result>  --tiles.xml
> > >
> > >  > > value="Action Result"/>
> > > 
> > >  Let me know if somebody faced same issue. 
> > > Regards,Vishal
> > > 
> > >On Saturday, 19 November 2016, 10:28, Vishal Jhagadiawala 
> > >  wrote:
> > > 
> > > 
> > >  Hi ,
> > > I have upgraded my struts application 

Re: action tag with tile result causing StackOverflowError-

2016-11-25 Thread Vishal Jhagadiawala
Thanks Christoph for suggestion, That's best way to do it, 
In my application I have lots of nested content, which is called by  
along with tiles result. 

The code worked fine upto struts 2.2.1.1 and tiles 2.0.6 versions. after 
upgrading exactly same usage goes into infinite loop. and to refactor 
application it will be a big effort. 

is there anyway to open jira ticket, as this is reproducible so it can be 
tracked. 


Regards,
Vishal



On Tuesday, 22 November 2016, 3:37, Christoph Nenning 
 wrote:
 

 In our apps we do similar things in a different way.


Our Tiles definition for layout looks like this:


    
    




Inside layout.jsp we insert the content provided by action like this:


        




Actions provide content by using annotations:

@TilesDefinition(
        extend=".layout",
        putAttributes={
                @TilesPutAttribute(name="title", value="titel"),
                @TilesPutAttribute(name="content",value="content.jsp")
        }
)



Hope that helps!



Regards,
Christoph





> From: Vishal Jhagadiawala 
> To: Struts Users Mailing List , 
> Date: 21.11.2016 16:14
> Subject: Re: action tag with tile result causing StackOverflowError-
> 
> Hi Christoph,
> Please find my response below. 
> 
> Here is my actionTileResult.jsp (it is for test)
> actionResult.jsp
> This is text :
> 
> 
> 
> 
> - how should showcase.index.actionResult and showcase.index belong to 
each 
> other?  showcase.index is a global layout, and there are dynamic 
> pages based on action outcome eg . showcase.index.actionResult will 
> be included in the global layout
> 
> - shouldn't showcase.index.actionResult set the body attribute?    
> currently to reproduce the issue, I have used title attribute, but 
> we tile definition can be more specific based on need
> 
> - why is there an  tag in layout.jsp?          this is to 
> include dynamic result based on outcome of the action logic. 
> 
> 
> Regards,
> Vishal
> 
>    On Monday, 21 November 2016, 4:19, Christoph Nenning 
>  wrote:
> 
> 
>  Hi,
> 
> 
> some questions about your code snippets:
> 
> - how does actionResult.jsp look?
> - how should showcase.index.actionResult and showcase.index belong to 
each 
> other?
> - shouldn't showcase.index.actionResult set the body attribute?
> - why is there an  tag in layout.jsp?
> 
> 
> Regards,
> Christoph
> 
> 
> 
> > From: Vishal Jhagadiawala 
> > To: Struts Users Mailing List , 
> > Date: 19.11.2016 20:55
> > Subject: Re: action tag with tile result causing StackOverflowError-
> > 
> > Hi ,
> > I also verified the exactly same error happens in struts 2.5.5 with 
> > tiles 3.0.7.
> > if we try to use action tag as below with tiles result it's goes in 
> > infinite loop and throws it throws java.lang.StackOverflowError,
> > 
> > 
> > Layout.jsp 
> >         
> >  Notice that this is a layout
> > made in JSP         > name="myTestAction" namespace="/tiles" 
> executeResult="true"/>
> > 
> > - struts.xml              
> > showcase.index.actionResult          
> > showcase.index.actionResult > result>          --tiles.xml
> >                                
> >          > value="Action Result"/>
> > 
> >  Let me know if somebody faced same issue. 
> > Regards,Vishal
> > 
> >    On Saturday, 19 November 2016, 10:28, Vishal Jhagadiawala 
> >  wrote:
> > 
> > 
> >  Hi ,
> > I have upgraded my struts application to version 2.3.30 and apache-
> > tiles 2.2.2 and I am facing issue with s:action tag and tiles 
> > result. it goes in recursive loop and throws StackOverflowError as 
> below. 
> > also I am able to reproduce this issue in showcase application, I 
> > have outlined the tiles.xml , struts-tile.xml and layout.jsp as below. 

> > it throws java.lang.StackOverflowError: null at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230)        at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230) at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230) at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230) .. (truncated) 
> > .        at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke
> > (DefaultActionInvocation.java:245) at 
> > c

Re: action tag with tile result causing StackOverflowError-

2016-11-22 Thread Christoph Nenning
In our apps we do similar things in a different way.


Our Tiles definition for layout looks like this:








Inside layout.jsp we insert the content provided by action like this:







Actions provide content by using annotations:

@TilesDefinition(
extend=".layout",
putAttributes={
@TilesPutAttribute(name="title", value="titel"),
@TilesPutAttribute(name="content",value="content.jsp")
}
)



Hope that helps!



Regards,
Christoph





> From: Vishal Jhagadiawala 
> To: Struts Users Mailing List , 
> Date: 21.11.2016 16:14
> Subject: Re: action tag with tile result causing StackOverflowError-
> 
> Hi Christoph,
> Please find my response below. 
> 
> Here is my actionTileResult.jsp (it is for test)
> actionResult.jsp
> This is text :
> 
> 
> 
> 
> - how should showcase.index.actionResult and showcase.index belong to 
each 
> other?   showcase.index is a global layout, and there are dynamic 
> pages based on action outcome eg . showcase.index.actionResult will 
> be included in the global layout
> 
> - shouldn't showcase.index.actionResult set the body attribute?
> currently to reproduce the issue, I have used title attribute, but 
> we tile definition can be more specific based on need
> 
> - why is there an  tag in layout.jsp?  this is to 
> include dynamic result based on outcome of the action logic. 
> 
> 
> Regards,
> Vishal
> 
> On Monday, 21 November 2016, 4:19, Christoph Nenning 
>  wrote:
> 
> 
>  Hi,
> 
> 
> some questions about your code snippets:
> 
> - how does actionResult.jsp look?
> - how should showcase.index.actionResult and showcase.index belong to 
each 
> other?
> - shouldn't showcase.index.actionResult set the body attribute?
> - why is there an  tag in layout.jsp?
> 
> 
> Regards,
> Christoph
> 
> 
> 
> > From: Vishal Jhagadiawala 
> > To: Struts Users Mailing List , 
> > Date: 19.11.2016 20:55
> > Subject: Re: action tag with tile result causing StackOverflowError-
> > 
> > Hi ,
> > I also verified the exactly same error happens in struts 2.5.5 with 
> > tiles 3.0.7.
> > if we try to use action tag as below with tiles result it's goes in 
> > infinite loop and throws it throws java.lang.StackOverflowError,
> > 
> > 
> > Layout.jsp 
> > 
> >  Notice that this is a layout
> > made in JSP > name="myTestAction" namespace="/tiles" 
> executeResult="true"/>
> > 
> > - struts.xml  
> > showcase.index.actionResult  
> > showcase.index.actionResult > result>  --tiles.xml
> >
> >  > value="Action Result"/>
> > 
> >  Let me know if somebody faced same issue. 
> > Regards,Vishal
> > 
> >On Saturday, 19 November 2016, 10:28, Vishal Jhagadiawala 
> >  wrote:
> > 
> > 
> >  Hi ,
> > I have upgraded my struts application to version 2.3.30 and apache-
> > tiles 2.2.2 and I am facing issue with s:action tag and tiles 
> > result. it goes in recursive loop and throws StackOverflowError as 
> below. 
> > also I am able to reproduce this issue in showcase application, I 
> > have outlined the tiles.xml , struts-tile.xml and layout.jsp as below. 

> > it throws java.lang.StackOverflowError: null at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230)at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230) at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230) at 
> > org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> > (ApplicationHttpRequest.java:230) .. (truncated) 
> > .at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke
> > (DefaultActionInvocation.java:245) at 
> > com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> > (AliasInterceptor.java:193) at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke
> > (DefaultActionInvocation.java:245) at 
> > 
> 
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> > (ExceptionMappingInterceptor.java:189) at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke
> > (DefaultActionInvocation.java:245) at 
> > org.apache.struts2.impl.StrutsActionProxy.execu

Re: action tag with tile result causing StackOverflowError-

2016-11-21 Thread Vishal Jhagadiawala
Hi Christoph,
Please find my response below. 

Here is my actionTileResult.jsp (it is for test)
actionResult.jsp
This is text :




- how should showcase.index.actionResult and showcase.index belong to each 
other?   showcase.index is a global layout, and there are dynamic pages based 
on action outcome eg . showcase.index.actionResult will be included in the 
global layout

- shouldn't showcase.index.actionResult set the body attribute?    currently to 
reproduce the issue, I have used title attribute, but we tile definition can be 
more specific based on need

- why is there an  tag in layout.jsp?  this is to include 
dynamic result based on outcome of the action logic. 


Regards,
Vishal

On Monday, 21 November 2016, 4:19, Christoph Nenning 
 wrote:
 

 Hi,


some questions about your code snippets:

- how does actionResult.jsp look?
- how should showcase.index.actionResult and showcase.index belong to each 
other?
- shouldn't showcase.index.actionResult set the body attribute?
- why is there an  tag in layout.jsp?


Regards,
Christoph



> From: Vishal Jhagadiawala 
> To: Struts Users Mailing List , 
> Date: 19.11.2016 20:55
> Subject: Re: action tag with tile result causing StackOverflowError-
> 
> Hi ,
> I also verified the exactly same error happens in struts 2.5.5 with 
> tiles 3.0.7.
> if we try to use action tag as below with tiles result it's goes in 
> infinite loop and throws it throws java.lang.StackOverflowError,
> 
> 
> Layout.jsp 
>         
>  Notice that this is a layout
> made in JSP         name="myTestAction" namespace="/tiles" 
executeResult="true"/>
> 
> - struts.xml              
> showcase.index.actionResult          
> showcase.index.actionResult result>          --tiles.xml
>                                
>          value="Action Result"/>
> 
>  Let me know if somebody faced same issue. 
> Regards,Vishal
> 
>    On Saturday, 19 November 2016, 10:28, Vishal Jhagadiawala 
>  wrote:
> 
> 
>  Hi ,
> I have upgraded my struts application to version 2.3.30 and apache-
> tiles 2.2.2 and I am facing issue with s:action tag and tiles 
> result. it goes in recursive loop and throws StackOverflowError as 
below. 
> also I am able to reproduce this issue in showcase application, I 
> have outlined the tiles.xml , struts-tile.xml and layout.jsp as below. 
> it throws java.lang.StackOverflowError: null at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230)        at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230) at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230) at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230) .. (truncated) 
> .        at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245) at 
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> (AliasInterceptor.java:193) at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245) at 
> 
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> (ExceptionMappingInterceptor.java:189) at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245) at 
> org.apache.struts2.impl.StrutsActionProxy.execute
> (StrutsActionProxy.java:54) at 
> org.apache.struts2.components.ActionComponent.executeAction
> (ActionComponent.java:288) at 
> org.apache.struts2.components.ActionComponent.end
> (ActionComponent.java:172) at 
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag
> (ComponentTagSupport.java:42) at 
> 
org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspx_meth_s_005faction_005f0
> (layout_jsp.java:210) at 
> 
org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspService(layout_jsp.java:109)
> 
> Here is my usage, 
> Layout.jsp
>     Struts2 Showcase -  name="title"/>     name="header"/>     Notice 
> that this is a layout made in JSP          name="myTestAction" namespace="/tiles" executeResult="true" 
/>
> 
> tiles.xml
>                                           template="/WEB-INF/tiles/actionTileResult.jsp">         attribute name="title" value="Tiles Result from action"/>    
    
> struts-tiles.xml
>                     type="tiles">showcase.index             name="success" type="tiles">showcase.index        
>          name="myTestAction">             type="tiles">showcase.index.actionResult             name="success" type="tiles">showcase.index.actionResult    
>      
> actionTileResult.jsp
>     
> Action tile result  title> Notice that this is a  jsp
> 
> 
> Please let me know anybody faced similar issue and any solution to it.
> Regards,Vishal
> 
> 

This Email was scanned by Sophos Anti Virus


   

Re: action tag with tile result causing StackOverflowError-

2016-11-21 Thread Christoph Nenning
Hi,


some questions about your code snippets:

- how does actionResult.jsp look?
- how should showcase.index.actionResult and showcase.index belong to each 
other?
- shouldn't showcase.index.actionResult set the body attribute?
- why is there an  tag in layout.jsp?


Regards,
Christoph



> From: Vishal Jhagadiawala 
> To: Struts Users Mailing List , 
> Date: 19.11.2016 20:55
> Subject: Re: action tag with tile result causing StackOverflowError-
> 
> Hi ,
> I also verified the exactly same error happens in struts 2.5.5 with 
> tiles 3.0.7.
> if we try to use action tag as below with tiles result it's goes in 
> infinite loop and throws it throws java.lang.StackOverflowError,
> 
> 
> Layout.jsp 
> 
>  Notice that this is a layout
> made in JSP   name="myTestAction" namespace="/tiles" 
executeResult="true"/>
> 
> - struts.xml   
> showcase.index.actionResult   
> showcase.index.actionResult result>   --tiles.xml
> 
>  value="Action Result"/>
> 
>  Let me know if somebody faced same issue. 
> Regards,Vishal
> 
> On Saturday, 19 November 2016, 10:28, Vishal Jhagadiawala 
>  wrote:
> 
> 
>  Hi ,
> I have upgraded my struts application to version 2.3.30 and apache-
> tiles 2.2.2 and I am facing issue with s:action tag and tiles 
> result. it goes in recursive loop and throws StackOverflowError as 
below. 
> also I am able to reproduce this issue in showcase application, I 
> have outlined the tiles.xml , struts-tile.xml and layout.jsp as below. 
> it throws java.lang.StackOverflowError: null at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230) at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230) at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230) at 
> org.apache.catalina.core.ApplicationHttpRequest.getAttribute
> (ApplicationHttpRequest.java:230) .. (truncated) 
> .at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245) at 
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> (AliasInterceptor.java:193) at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245) at 
> 
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> (ExceptionMappingInterceptor.java:189) at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245) at 
> org.apache.struts2.impl.StrutsActionProxy.execute
> (StrutsActionProxy.java:54) at 
> org.apache.struts2.components.ActionComponent.executeAction
> (ActionComponent.java:288) at 
> org.apache.struts2.components.ActionComponent.end
> (ActionComponent.java:172) at 
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag
> (ComponentTagSupport.java:42) at 
> 
org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspx_meth_s_005faction_005f0
> (layout_jsp.java:210) at 
> 
org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspService(layout_jsp.java:109)
> 
> Here is my usage, 
> Layout.jsp
> Struts2 Showcase -  name="title"/> name="header"/> Notice 
> that this is a layout made in JSP   name="myTestAction" namespace="/tiles" executeResult="true" 
/>
> 
> tiles.xml
> template="/WEB-INF/tiles/actionTileResult.jsp"> attribute name="title" value="Tiles Result from action"/>

> struts-tiles.xml
>  type="tiles">showcase.index name="success" type="tiles">showcase.index
>  name="myTestAction"> type="tiles">showcase.index.actionResult name="success" type="tiles">showcase.index.actionResult
>   
> actionTileResult.jsp
> 
> Action tile result  title> Notice that this is a  jsp
> 
> 
> Please let me know anybody faced similar issue and any solution to it.
> Regards,Vishal
> 
> 

This Email was scanned by Sophos Anti Virus


Re: action tag with tile result causing StackOverflowError-

2016-11-19 Thread Vishal Jhagadiawala
Hi ,
I also verified the exactly same error happens in struts 2.5.5 with tiles 3.0.7.
if we try to use action tag as below with tiles result it's goes in infinite 
loop and throws it throws java.lang.StackOverflowError,


Layout.jsp 
         Notice that this is a layout made in JSP          

- struts.xml               showcase.index.actionResult            showcase.index.actionResult       
    --tiles.xml
         
                       
        

 Let me know if somebody faced same issue. 
Regards,Vishal

On Saturday, 19 November 2016, 10:28, Vishal Jhagadiawala 
 wrote:
 

 Hi ,
I have upgraded my struts application to version 2.3.30 and apache-tiles 2.2.2 
and I am facing issue with s:action tag and tiles result. it goes in recursive 
loop and throws StackOverflowError as below. 
also I am able to reproduce this issue in showcase application, I have outlined 
the tiles.xml , struts-tile.xml and layout.jsp as below. 
it throws java.lang.StackOverflowError: null at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
         at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
 at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
 at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
 .. (truncated) .        at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
 at 
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
 at 
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
 at 
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) at 
org.apache.struts2.components.ActionComponent.executeAction(ActionComponent.java:288)
 at org.apache.struts2.components.ActionComponent.end(ActionComponent.java:172) 
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
 at 
org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspx_meth_s_005faction_005f0(layout_jsp.java:210)
 at org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspService(layout_jsp.java:109)

Here is my usage, 
Layout.jsp
    Struts2 Showcase -        
  Notice that this is a layout made in 
JSP          

tiles.xml
         
                                                  
struts-tiles.xml
                    showcase.index            showcase.index        
                    showcase.index.actionResult            showcase.index.actionResult        
  
actionTileResult.jsp
    
Action tile result  Notice that this is a  
jsp


Please let me know anybody faced similar issue and any solution to it.
Regards,Vishal

   

action tag with tile result causing StackOverflowError-

2016-11-19 Thread Vishal Jhagadiawala
Hi ,
I have upgraded my struts application to version 2.3.30 and apache-tiles 2.2.2 
and I am facing issue with s:action tag and tiles result. it goes in recursive 
loop and throws StackOverflowError as below. 
also I am able to reproduce this issue in showcase application, I have outlined 
the tiles.xml , struts-tile.xml and layout.jsp as below. 
it throws java.lang.StackOverflowError: null at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
         at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
 at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
 at 
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:230)
 .. (truncated) .        at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
 at 
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
 at 
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
 at 
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) at 
org.apache.struts2.components.ActionComponent.executeAction(ActionComponent.java:288)
 at org.apache.struts2.components.ActionComponent.end(ActionComponent.java:172) 
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
 at 
org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspx_meth_s_005faction_005f0(layout_jsp.java:210)
 at org.apache.jsp.WEB_002dINF.tiles.layout_jsp._jspService(layout_jsp.java:109)

Here is my usage, 
Layout.jsp
    Struts2 Showcase -        
  Notice that this is a layout made in 
JSP          

tiles.xml
         
                                                  
struts-tiles.xml
                    showcase.index            showcase.index        
                    showcase.index.actionResult            showcase.index.actionResult        
  
actionTileResult.jsp
    
Action tile result  Notice that this is a  
jsp


Please let me know anybody faced similar issue and any solution to it.
Regards,Vishal