Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1677

Mitigate StackOverflowError that might occur when using an 'on-exception'-transition

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.4.2
    • Fix Version/s: None
    • Component/s: Core: Flow Executor
    • Labels:
      None

      Description

      With SWF it is possible to define a flow containing exception handling instructions that cause a StackOverflowError.

      The attached project contains an example of the problem. To reproduce it follow this steps:

      1. Start the application and open the respective website.
      2. Click the button "Switch to state with light initialization"

      After a while the StackOverflowError will be thrown and displayed.

      The problem gets more serious if the initialization that is performed takes a reasonable amount of time. This can be reproduced using the following steps:

      1. Start the application and open the respective website.
      2. Click the button "Switch to state with heavy initialization"

      Now it will take a (very very) long time until the StackOverflowError will be thrown.

      A solution for this problem whould be to throw an "uncatchable" error that will immediately terminate the exception handling (see attached patch).

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            jgrimm Johannes Grimm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: