Re: EmptyStackException after upgrading Struts 2.3 to 2.5

2019-01-30 Thread Lukasz Lenart
wt., 29 sty 2019 o 12:04 Yasser Zamani napisał(a): > Yes I recently learnt it but I always logically had this assumption: When > bean A needs bean B to be injected and B's type is `prototype`, then Struts > internal injection cycle always re-inject a new instance of B into A > regardless if A's

Re: RE: EmptyStackException after upgrading Struts 2.3 to 2.5

2019-01-29 Thread Eduardo Quintanilla
9 11:04:21, Yasser Zamani wrote: > >From: Lukasz Lenart > >Sent: Tuesday, January 29, 2019 2:18 PM > >To: Struts Users Mailing List > >Subject: Re: EmptyStackException after upgrading Struts 2.3 to 2.5 > > > >wt., 29 sty 2019 o 11:30 Yasser Zamani napisał(a): >

RE: EmptyStackException after upgrading Struts 2.3 to 2.5

2019-01-29 Thread Yasser Zamani
>From: Lukasz Lenart >Sent: Tuesday, January 29, 2019 2:18 PM >To: Struts Users Mailing List >Subject: Re: EmptyStackException after upgrading Struts 2.3 to 2.5 > >wt., 29 sty 2019 o 11:30 Yasser Zamani napisał(a): >> Yes you both are right. It looks like a race condi

Re: EmptyStackException after upgrading Struts 2.3 to 2.5

2019-01-29 Thread Lukasz Lenart
wt., 29 sty 2019 o 11:30 Yasser Zamani napisał(a): > Yes you both are right. It looks like a race condition between stack.clear > and stack.write [1]. But somehow it's odd. I was aware about this and defined > them as prototype [2] so I except new instance on each request. I also can > recall I

RE: EmptyStackException after upgrading Struts 2.3 to 2.5

2019-01-29 Thread Yasser Zamani
Message- >From: Lukasz Lenart >Sent: Monday, January 28, 2019 10:35 PM >To: Struts Users Mailing List >Subject: Re: EmptyStackException after upgrading Struts 2.3 to 2.5 > >Hi, > >I think you are right, it's probably a side effect of changes related to this >

Re: EmptyStackException after upgrading Struts 2.3 to 2.5

2019-01-28 Thread Lukasz Lenart
Hi, I think you are right, it's probably a side effect of changes related to this issues https://issues.apache.org/jira/browse/WW-4034 Could you register a new JIRA ticket to fix that? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ pon., 28 sty 2019 o 16:55 Eduardo Guadalupe n

EmptyStackException after upgrading Struts 2.3 to 2.5

2019-01-28 Thread Eduardo Guadalupe
I suspect there is a concurrency issue with the DefaultJSONWriter implementation. I have overridden the JSONInterceptor so a new instance of JSONUtil is used with every request and the issue is not happening anymore. I suppose there is a performance cost with that change but for now it works. http