aspose file tools
The moose likes Struts and the fly likes tokenSession and execAndWait interceptor together Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "tokenSession and execAndWait interceptor together" Watch "tokenSession and execAndWait interceptor together" New topic
Author

tokenSession and execAndWait interceptor together

himanjim sharma
Greenhorn

Joined: Apr 14, 2009
Posts: 2
I'm trying to use tokenSession and execAndWait interceptor together
<interceptors>
<interceptor-stack name="searchformstack">
<interceptor-ref name="tokenSession" />
<interceptor-ref name="defaultStack" />
<interceptor-ref name="execAndWait" />
</interceptor-stack>
</interceptors>

but in some case when action execution time is bit a longer that wait page is displayed, this exception is displayed:
SEVERE: Could not find action or result
No result defined for action com.mmt.genericform.actions.GenericFormSeachServiceAction and result invalid.token
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)

My guess is that as on wait page we have to refresh at fixed interval to see if action execution is complete, on any refresh token value is lost which leads to above exception.

Any suggestions regarding how can one fix this...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: tokenSession and execAndWait interceptor together
 
Similar Threads
struts2 execandwait interceptor
execAndWait problem
Proble with <interceptor-ref name="execAndWait"/>
ExecAndWait interceptor parameters lost
Struts2 - execAndWait Interceptor