org.springframework.webflow.execution.FlowExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • SWF will throw one of Spring Security's AccessDeniedException instances when a <secured> element applies to a state, transition or flow. It would be desirable that this AccessDeniedException is presented to the <transition on-exception> mechanism. However, the "on-exception" facility does not catch a <secured> element exception but instead throws the exception and Spring Security's ExceptionTranslationFilter will handle it. The handling of the exception by Spring Security's filter is undesired because the more advanced state-aware concepts such as "to=.." do not apply (ExceptionTranslationFilter can only redirect to a URL, not an SWF transition). What would be nice is a way the '<secured' tag and the '<transition on-exception' tag both reside within the view-state: <view-state id="enterBookingDetails" model="booking"> <secured attributes="ROLE_SUPERVISOR" /> <transition on-exception="org.springframework.security.AccessDeniedException" to="noAccess" /> </view-state> Alternatively, a global-transition would be feasible as well: <global-transitions> <transition on-exception="org.springframework.security.AccessDeniedException" to="noAccess" /> </global-transitions> but that gives me a weird exception: org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'null' of flow 'hotels/booking' at org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:567) at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225) at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140) at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.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.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) [...] The modified booking-flow.xml is attached. It just needs to be dropped into the standard booking-mvc sample in order to replicate the problem.
    via by Stefan Schmidt,
  • SWF will throw one of Spring Security's AccessDeniedException instances when a <secured> element applies to a state, transition or flow. It would be desirable that this AccessDeniedException is presented to the <transition on-exception> mechanism. However, the "on-exception" facility does not catch a <secured> element exception but instead throws the exception and Spring Security's ExceptionTranslationFilter will handle it. The handling of the exception by Spring Security's filter is undesired because the more advanced state-aware concepts such as "to=.." do not apply (ExceptionTranslationFilter can only redirect to a URL, not an SWF transition). What would be nice is a way the '<secured' tag and the '<transition on-exception' tag both reside within the view-state: <view-state id="enterBookingDetails" model="booking"> <secured attributes="ROLE_SUPERVISOR" /> <transition on-exception="org.springframework.security.AccessDeniedException" to="noAccess" /> </view-state> Alternatively, a global-transition would be feasible as well: <global-transitions> <transition on-exception="org.springframework.security.AccessDeniedException" to="noAccess" /> </global-transitions> but that gives me a weird exception: org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'null' of flow 'hotels/booking' at org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:567) at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225) at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140) at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.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.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) [...] The modified booking-flow.xml is attached. It just needs to be dropped into the standard booking-mvc sample in order to replicate the problem.
    via by Stefan Schmidt,
  • Alternative to f:verbatim in JSF 2.1
    via Stack Overflow by Reddy3776728
    ,
    • org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'null' of flow 'hotels/booking' at org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:567) at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225) at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140) at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.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.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,