spring - Web flow Exception: No flow execution snapshot could be found with id '1' -
spring - Web flow Exception: No flow execution snapshot could be found with id '1' -
i getting below exception whenever switch 1 state more 15 times in web-flow.
no flow execution snapshot found id '1'; perhaps snapshot has been removed? . stacktrace follows: org.springframework.webflow.execution.repository.flowexecutionrestorationfailureexception: problem occurred restoring flow execution key 'e7s1' @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:886) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:908) @ java.lang.thread.run(thread.java:662) caused by: org.springframework.webflow.execution.repository.snapshot.snapshotnotfoundexception: no flow execution snapshot found id '1'; perhaps snapshot has been removed? ... 3 more
i using grails webflow plug-in.
are have thought why occurring , how resolve this?
web flow retains specified number of executions ("e7") , snapshots ("s1") in repository @ 1 time. useful in order limit how much memory can consumed. i'm guessing default 15, in case execution "e7" can have 15 snapshots move state state. 1 time you've nail "e7s16", "s1" discarded, giving result see.
you can change defaults <webflow:flow-execution-repository>
configuration element:
<!-- executes flows: entry point spring web flow scheme --> <webflow:flow-executor id="flowexecutor" flow-registry="flowregistry"> <webflow:flow-execution-repository max-execution-snapshots="20" max-executions="2"/> </webflow:flow-executor>
quoting link above:
tune max-execution-snapshots attribute place cap on number of history snapshots can taken per flow execution. disable snapshotting, set value 0. enable unlimited number of snapshots, set value -1.
i find default behavior unacceptable, though, when happen visit expired snapshot , exception. another recent question asked how grab case, presumably can more useful when occurs.
(we implemented custom code carry along in httpsession lastly valid snapshot send user there when exception occurs.)
spring grails spring-webflow
Comments
Post a Comment