title: getting FlowExecutionRestorationFailureException in spring web flow
body: <p>I am getting FlowExecutionRestorationFailureException exception when i am closing the tab of application. </p>
  
  <p>We have a application developed in primeafaces 3.4.2 and spring web flow 2.3.1.</p>
  
  <p>In this application we have a Home Screen (first screen display after login) and at this screen we have a Account link(CommandLink).</p>
  
  <p>When we click on Search link <strong>other tab</strong> (Now we have two tabs- 1. Home Screen 2. Account) is open with Account detail and on that screen we have Billing button. we are navigating to Billing screen on click of Billing button.</p>
  
  <p>After that we are closing the Billing screen tab by clicking the close icon of tab.</p>
  
  <p>But still we have other tab having Home Screen, we click the Account link. </p>
  
  <p>Follow the same step 7-8 times. After that we are getting FlowExecutionRestorationFailureException exception.</p>
  
  <p><strong>Flow Snap Shot config:</strong></p>
  
  <pre><code>    webflow:flow-executor id="flowExecutor"&gt;
      &lt;webflow:flow-execution-listeners&gt;
          &lt;webflow:listener ref="facesContextListener" /&gt;
          &lt;webflow:listener ref="securityFlowExecutionListener" /&gt;
      &lt;/webflow:flow-execution-listeners&gt;     
      &lt;webflow:flow-execution-repository max-executions="0" max-execution-snapshots="15" /&gt;       
  &lt;/webflow:flow-executor&gt;
  </code></pre>
  
  <p><strong>Exception Trace:</strong>
  type Exception report<br>
  message Request processing failed; nested exception is org.springframework.webflow.execution.repository.FlowExecutionRestorationFailureException: A problem occurred restoring the flow execution with key 'e1s1'<br>
  description The server encountered an internal error that prevented it from fulfilling this request.<br>
  exception<br>
  org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.repository.FlowExecutionRestorationFailureException: A problem occurred restoring the flow execution with key 'e1s1'
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
  org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
  org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
  org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
  org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
  org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
  org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
  org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:88)
  org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)</p>
  
  <p>Some Detail about Flow:
  <img src="https://i.stack.imgur.com/T93ss.png" alt="Flow Detials">
   I tried to end billing sub flow and Home sub flow, but when i click the Account Link its opening Home screen again and receive the same exception later.</p>
  
  <p>Please advise/suggest me.</p>