-
Notifications
You must be signed in to change notification settings - Fork 627
An exception in Action causes infinite transition #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Good catch, this is indeed caused by loop which is needed to follow anonymous transitions and possible error there ended up with infinite loop. I may need to think about how to properly handle this as it's a bit wrong to just stop execution. I'll handle further tweaks in other tickets and fix this loop issue here. |
- Executor is following anonymous transitions in a loop and if there is an exception in actions with this transition, effectively executor ended into infinite loop. - No bailing out from this loop if we cannot continue. - Fixes spring-projects#344
Fixed in 1.2.x per e25c5c6 |
- Executor is following anonymous transitions in a loop and if there is an exception in actions with this transition, effectively executor ended into infinite loop. - No bailing out from this loop if we cannot continue. - Backport spring-projects#344 - Relates spring-projects#307
Hello, The fix partially helped, but now the Action occurs twice. Server Log:
|
ok, I'll check it out. |
Do you have any news about this problem? I can try to analyze the issue and prepare a pull request by myself, if you will check it. |
Closing in favour of #384 |
If any exception occurs inside your
Action
, then Spring State Machine infinitely invokesAction
that throws the Exception again.Server Log:
In the attached demo, I've prepared simple example to reproduce this issue.
You can invoke deployed REST service using this endpoint http://localhost:8380/doSomething and execute properly configured state machine.
demo.zip
The text was updated successfully, but these errors were encountered: