Results 1 to 6 of 6

Thread: WebFlow2 SnapshotNotFoundException

  1. #1
    Join Date
    Feb 2007
    Posts
    5

    Question WebFlow2 SnapshotNotFoundException

    We are running a web application built with SWF 2.0.6 and Spring 2.5.6/MVC on Resin 3.0.x webserver.

    The other weird thing is that we notice this happening on some of our servers and not on others even though the environments are same.

    Has someone experienced such issues with the snapshotgroup with the snapshot being lost from the conversation even though we are in the same flow and conversation on successive actions?

    See the Strack trace
    Caused by: org.springframework.webflow.execution.repository.s napshot.SnapshotNotFoundException: No flow execution snapshot could be found with id '1'; perhaps the snapshot has been removed?

    org.springframework.webflow.execution.repository.F lowExecutionRestorationFailureException: A problem occurred restoring the flow execution with key 'e8s1'
    at org.springframework.webflow.execution.repository.i mpl.DefaultFlowExecutionRepository.getFlowExecutio n(DefaultFlowExecutionRepository.java:102)
    at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:162)
    at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:875)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:807)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:501)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:115)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:92)
    at com.caucho.server.dispatch.ServletFilterChain.doFi lter(ServletFilterChain.java:106)
    at com.caucho.filters.GzipFilter.doFilter(GzipFilter. java:208)
    at com.caucho.server.dispatch.FilterFilterChain.doFil ter(FilterFilterChain.java:70)
    at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    at com.caucho.server.dispatch.FilterFilterChain.doFil ter(FilterFilterChain.java:70)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:265)
    at org.acegisecurity.intercept.web.FilterSecurityInte rceptor.invoke(FilterSecurityInterceptor.java:107)
    at org.acegisecurity.intercept.web.FilterSecurityInte rceptor.doFilter(FilterSecurityInterceptor.java:72 )
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.ui.ExceptionTranslationFilter.do Filter(ExceptionTranslationFilter.java:124)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.providers.anonymous.AnonymousPro cessingFilter.doFilter(AnonymousProcessingFilter.j ava:125)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.wrapper.SecurityContextHolderAwa reRequestFilter.doFilter(SecurityContextHolderAwar eRequestFilter.java:81)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.ui.AbstractProcessingFilter.doFi lter(AbstractProcessingFilter.java:271)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.ui.logout.LogoutFilter.doFilter( LogoutFilter.java:110)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.context.HttpSessionContextIntegr ationFilter.doFilter(HttpSessionContextIntegration Filter.java:249)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.securechannel.ChannelProcessingF ilter.doFilter(ChannelProcessingFilter.java:138)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.util.FilterChainProxy.doFilter(F ilterChainProxy.java:149)
    at org.acegisecurity.util.FilterToBeanProxy.doFilter( FilterToBeanProxy.java:98)
    at com.caucho.server.dispatch.FilterFilterChain.doFil ter(FilterFilterChain.java:70)
    at com.caucho.server.cache.CacheFilterChain.doFilter( CacheFilterChain.java:209)
    at com.caucho.server.webapp.WebAppFilterChain.doFilte r(WebAppFilterChain.java:173)
    at com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:229)
    at com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:274)
    at com.caucho.server.port.TcpConnection.run(TcpConnec tion.java:511)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.jav a:520)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:442 )
    at java.lang.Thread.run(Thread.java:595)
    Caused by: org.springframework.webflow.execution.repository.s napshot.SnapshotNotFoundException: No flow execution snapshot could be found with id '1'; perhaps the snapshot has been removed?
    at org.springframework.webflow.execution.repository.i mpl.SimpleFlowExecutionSnapshotGroup.getSnapshot(S impleFlowExecutionSnapshotGroup.java:68)
    at org.springframework.webflow.execution.repository.i mpl.DefaultFlowExecutionRepository.getFlowExecutio n(DefaultFlowExecutionRepository.java:100)

  2. #2
    Join Date
    Mar 2008
    Location
    Portland OR
    Posts
    44

    Default

    Yes, I just got this same error on one of my development machines. I'm not getting it on the other one yet even though I'm running the same codebase on both.

    I don't have a solution yet, and am just starting to investigate.

    Mark

  3. #3
    Join Date
    Mar 2009
    Posts
    4

    Default

    I'm running my app in a portlet environment. I get this error when I click on a link (which goes into a subflow) but before the page can be refreshed, I click on another link on the page (which goes into a different subflow)... and this error pops up. I just started looking into this. Does anybody have any idea why this is happening?

    using Webflow 2.0.5

  4. #4
    Join Date
    Jun 2009
    Posts
    7

    Default

    Hi,

    We are getting the same intermittent exception when trying to re-enter a flow from a subflow. Are clues,tips, fixes to this?

    Many thanks in advance

    .
    Last edited by arel7; Dec 29th, 2009 at 07:17 PM.

  5. #5
    Join Date
    Jun 2009
    Posts
    7

    Default

    Hi,

    Anyone seen this issue - would appreciate some pointers. We have a clustered environment which seems to be producing this intermittent behaviour but as far as we can see the flows and all their transition stages are correct.

    Our server guys assure us that the cluster is setup correctly - which is seems to be as other session based functionality is working as expected.

    We also get this seemingly related exception frequently although we can see no reason for it based on our code (we are passing flowexecutionkey as a hidden input) and don't think our users are hitting those pages anywhere near as frequently as the exceptions would suggest:

    .
    Last edited by arel7; Dec 29th, 2009 at 07:16 PM.

  6. #6
    Join Date
    Mar 2009
    Posts
    15

    Thumbs up

    I think the scope you are using is not able to get the value you are trying to access.
    Try using other scopes as Spring webflow provides you such more scopes.

    @Regarding the snapshotNotFoundException: this occurs when the state that has not been generated by web flow is found in the urlpattern on the browser.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •