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


    • Type: Bug Report
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: 7.6.0, 7.7.0-alpha1
    • Fix Version/s: None
    • Component/s: engine
    • Labels:
    • Environment:
      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.

      1. stackOverflow.cmmn
        3 kB
        Damien O'Donnell


        There are no comments yet on this issue.


          • Assignee:
            damien.odonnell@verint.com Damien O'Donnell
          • Votes:
            2 Vote for this issue
            5 Start watching this issue


            • Created: