I keep getting the following error (NoMatchingTransitionException), and cannot figure out why.
My action-state looks like:
And when I step through, everything works as expected, but at the end of the process I get the following stack trace:Code:<action-state id="addToPage.action"> <action bean="loadPageAction" name="load"/> <action bean="checkAdminPagesAction" name="permissions"> <property name="pagesAccessor" value="currentPageAccessor"/> <property name="successfulAccessor" value="accessAllowedPagesAccessor"/> <property name="unSuccessfulAccessor" value="accessDeniedPagesAccessor"/> </action> <action bean="lockAction" name="lock"> <property name="pagesAccessor" value="accessAllowedPagesAccessor"/> <property name="successfulAccessor" value="lockedPagesAccessor"/> <property name="unSuccessfulAccessor" value="failedToLockPagesAccessor"/> </action> <action bean="createPagePermissionFormAction" name="create"/> <action bean="bindPagePermissionAction" name="bind" method="bindAndValidate"/> <action bean="assignPagePermissionAction"> <property name="pagesAccessor" value="lockedPagesAccessor"/> <property name="successfulAccessor" value="nullAccessor"/> <property name="unSuccessfulAccessor" value="nullAccessor"/> </action> <transition on="success" to="doneSinglePage.action"/> <transition on="error" to="rollBack.action"/> </action-state>
What am I missing?Code:13:21:33,984 ERROR [DispatcherServlet] Could not complete request org.springframework.web.flow.NoMatchingTransitionException: No transition was matched to the event(s) signaled by the 6 action(s) that executed in this action state 'addToPage.action' of flow editPermissionsFlow'; transitions must be defined to handle action result utcomes -- possible flow configuration error? Note: the eventIds signaled ere: 'array<String>['load.success', 'permissions.success', 'lock.success', create.success', 'bind.success', 'success']', while the supported set of ransitional criteria for this action state is array<TransitionCriteria>['success', 'error']' at org.springframework.web.flow.ActionState.doEnter(ActionState.java:382)
I though webflow would ignore any events that don't have a transition mapped and go with the first one that is mapped.
Many thanks,
Colin


Reply With Quote

