Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Lukasz Lenart
2013/11/4 Ali Akhtar : > For me, this gives this output: > > Original: alia.strutsTest.actions.ajax.FooBar@14d03c1, now: > alia.strutsTest.actions.ajax.FooBar@1318c29 > > Original: alia.strutsTest.actions.ajax.FooBar@14d03c1, now: > alia.strutsTest.actions.ajax.FooBar@1ef284c > > Original: alia.str

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
Hello, I've created a simple project where this problem can be demonstrated: https://docs.google.com/file/d/0B5dyax9zpxrQQVU5RjlKYTlZcUk/edit?usp=sharing&pli=1 (Download via File -> download) This is a maven based project created in Netbeans. the .war file is also included, in the 'target' dire

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
To be clear, this is what's happening: 1) Request is made to /foobar/foo, which triggers FooAction.foo(). 2) The interceptor begins to process this request. 3) Another request is made concurently to /foobar/bar, which triggers FooAction.bar(). 4) The interceptor from step 2 does ai.invokeAction

RE: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Martin Gainty
> Date: Mon, 4 Nov 2013 02:49:12 +0500 > Subject: Re: Struts seems to reset the action instance while its still in > interceptor > From: ali.rac...@gmail.com > To: user@struts.apache.org > > Hopefully I am incorrect, however the following lines in my interceptor's > intercept method: > >

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread JOSE L MARTINEZ-AVIAL
can you provide the code of your action? 2013/11/3 Ali Akhtar > One more thing, in my actual code, I am doing ai.invokeActionOnly(), rather > than ai.invoke() . > > > On Mon, Nov 4, 2013 at 2:49 AM, Ali Akhtar wrote: > > > Hopefully I am incorrect, however the following lines in my interceptor

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
One more thing, in my actual code, I am doing ai.invokeActionOnly(), rather than ai.invoke() . On Mon, Nov 4, 2013 at 2:49 AM, Ali Akhtar wrote: > Hopefully I am incorrect, however the following lines in my interceptor's > intercept method: > > action = ai.getAction(); > String result

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
Hopefully I am incorrect, however the following lines in my interceptor's intercept method: action = ai.getAction(); String result = ai.invoke(); logger.debug("Orig action : " + action.toString() +" , now : " + ai.getAction().toString() ); Do produce two different toString() codes

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Dave Newton
You are incorrect. Actions are instantiated per-request. Other than that, you will need to provide a working example that exhibits the incorrect behavior. On Nov 3, 2013 12:57 PM, "Ali Akhtar" wrote: > Hello, > > It seems that if I have two concurrent requests being made to the same > action, e.

Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
Hello, It seems that if I have two concurrent requests being made to the same action, e.g mysite.com/fooAction, then struts resets the first action's instance while that instance may still be in the interceptor. E.g, if I have the following code in my interceptor: action = ai.getAction();

Re: Is this a createclassloader issue - HTTP Status 404 - result 'null' not found

2013-11-03 Thread Yaragalla Muralidhar
Hi i guess that your action class is running fine as per your description. So check the file "$CATALINA_BASE/conf/catalina.policy" for security permissions. "$CATALINA_BASE" is the root directory of the tomcat. Hope this helps. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogs

RE: Is this a createclassloader issue - HTTP Status 404 - result 'null' not found

2013-11-03 Thread Fredrik Andersson
Hello Muralidhar! Thanks for your reply! Interesting to hear that you do not think this has something to do with struts. Then I guess either that I have done something wrong or that the service provider might have done something wrong with my account. Best reagards! /Fredrik Btw If you a