Re: Token Session Interceptor problems

"Jason Carreira" <[email protected]> Wed, 20 Dec 2006 12:06:44 -0500
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <[email protected]>
Hey Martin,

I don't get the time to read this mailing list as much as I used to,
sorry... I wrote the token handling stuff, so I'm probably the person
to talk to.

The invalid-token result shouldn't be needed for the token-session
interceptor. It's not going to send you to that result. What it does
is to save the action invocation, along with the previously executed
action, into the session. When a duplicate form post comes in, it
pulls the invocation out of the session based on the token value and
tells it to re-render the result without re-executing the action.

My first guess for your problem would be around serialization. When
that stuff is put in the session, it might / probably will be
serialized (depends on the container), and when it's pulled back out,
it will have to be deserialized. If there's stuff in your action (or
your action iteself) which are not serializable, it will cause
problems.

That's just a first guess... I'd recommend getting the source for
WebWork and trace through the interceptor and see exactly where it's
breaking.

Hope that helps,

Jason

On 12/20/06, Martin Gilday <[email protected]> wrote:
> Sorry for bumping my own topic but the software has gone live now and this issue is causing us more problems than we expected.
>
> Are there any alternatives to using this interceptor?  The situation is that if the page is slow to respond then the agent will press the button again.  This cause problems with duplicate entries for applications.  So we tried to use this interceptor to detect the extra press and proceed to the correct page as if it had only been pressed once.  But we came across the limitation described in my first post.  The normal token interceptor is not really usable here as we require uninterupted flow.  Can anyone think of a short term solution to this until we can investigate the fault/limitation with the token-session interceptor?
>
> Thanks,
> Martin.
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.opensymphony.com/thread.jspa?threadID=53319&messageID=109183#109183
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
"They who would give up an essential liberty for temporary security,
deserve neither liberty or security" - Benjamin Franklin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]