File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes tokenSession and execAndWait interceptor together Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tokenSession and execAndWait interceptor together" Watch "tokenSession and execAndWait interceptor together" New topic

tokenSession and execAndWait interceptor together

himanjim sharma

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

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(

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...
It is sorta covered in the JavaRanch Style Guide.
subject: tokenSession and execAndWait interceptor together