>From: Lukasz Lenart <[email protected]> >Sent: Tuesday, January 29, 2019 2:18 PM >To: Struts Users Mailing List <[email protected]> >Subject: Re: EmptyStackException after upgrading Struts 2.3 to 2.5 > >wt., 29 sty 2019 o 11:30 Yasser Zamani <[email protected]> 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 >tested them heavily on high concurrent load [3]. > >but this is used in an interceptor and interceptors are created once per >package, >so the same instance will be used for the same requests
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 type is `singleton` or `prototype`. So I missed this case :( and Ach, you're right, I now can retain my high concurrent test was on JSONResult not JSONInterceptor :( Regards. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

