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

Stackoverflow when invoking GetActivityInstanceCmd

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.1.0, 7.1.1
    • Fix Version/s: 7.2.0, 7.1.2, 7.2.0-alpha2
    • Component/s: engine
    • Labels:
      None

      Description

      Reproduce steps:

      See SUPPORT-977

      Problem:

      Calling runtimeService.getActivityInstance("processInstanceId") inside a method which observes CDI events leads to a stackoverflow.

      Expected behavior:

      Works.

      Hints (optional):

      CommandExecutor commandExecutorTxRequiresNew = ((ProcessEngineImpl) ProcessEngines.getDefaultProcessEngine()).getProcessEngineConfiguration().getCommandExecutorTxRequiresNew();
      this.activityInstance = commandExecutorTxRequiresNew.execute(new GetActivityInstanceCmd(event.getProcessInstanceId()));

      is a workround.

      With the introduction of ProcessEngineService usage in delegates etc. since 7.1.0, we reuse the already existing CommandContext instead of creating a new one when invoking a command.

        Attachments

          Activity

            People

            Assignee:
            sebastian.menski Sebastian Menski
            Reporter:
            lipphardt Christian Lipphardt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: