PDA

View Full Version : CannotContinueConversationException


anicad
Apr 10th, 2006, 06:06 PM
I am trying to display a custom page when the CannotContinueConversationException is thrown. I am inserting the line below but it does not return the custom view page i set, it displays the exception staack trace. Do you know what's wrong?

<exception-handler on="org.springframework.webflow.execution.repository.C annotContinueConversationException" to="errorViewState"/>

Also, how do you sent an exception handler at the flow level? This does not work for me.

<exception-handler class="java.lang.Exception" state="errorViewState"/>

Keith Donald
Apr 10th, 2006, 06:13 PM
This exception does not get thrown within the flow execution--it's thrown at a higher-level at the flow execution repository, because access to the flow execution was dissallowed (the key submitted was invalid). Flow exception handlers can only respond to exceptions thrown by flow states *within* the flow execution.

imaigret
Apr 23rd, 2006, 10:36 AM
Hi,

I'm using the SimpleFlowExecutionRepositoryFactory because of security constraint : to avoid form resubmission ...

I cannot disable the browser's back button, not allowed to browse this web application in a popup, and cannot use a handler, so the last solution is to deal with this exception.

Help !!!!!

Would it be possible to override the method getFlowExecution(FlowExecutionKey key) of the class SimpleFlowExecutionRepository, so that the flow is redirected to the current state ?

Isabelle