Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7472

Closing a case when it terminates via a case execution listener causes StackOverflowError

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.6.0, 7.7.0-alpha1
    • engine
    • None
    • SQLServer 2014, but also occurs with H2

      Attached is a .zip with a Java+Gradle project that shows this issue in action. I have also attached the CMMN separately for ease of access.

      At src/main/resources/stackOverflow.cmmn is a simple CMMN case plan with one task, which when completed will terminate the case. The case plan itself has a case execution listener on it which will close the case. Therefore, when completing the task, the case will not simply terminate, but close as well.

      In Camunda 7.5.0, this works as expected. However, in 7.6.0 (and 7.7.0.-alpha1), a StackOverflowError occurs. It seems that the internal command to terminate the case doesn't just run once, but after running the listener to close the case it repeats itself infinitely but also recursively, leading to the overflow. It's quite strange behaviour.

      There is a README accompanying the project that explains the project and how to run it.

        This is the controller panel for Smart Panels app

          1. stackOverflow.cmmn
            3 kB
            Damien O'Donnell

              Unassigned Unassigned
              damien.odonnell@verint.com Damien O'Donnell
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: