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

Retry Time Cycle R0 omits setting incident error message on job failure

XMLWordPrintable

      What are the steps to reproduce your problem?

      - Create a process instance containing a single service task.

      - Set the retry time cycle configuration to R0/PT30S

      - Throw a RuntimeException(„some message“) within this step.

      - Check the incident message within Camunda Cockpit. It will show "Message is null.“ while it should show "some message“ (Note: if you open the stacktrace, it does show the runtime exception message but this does not show under the message tab in Incidents.

       

      What is the problem?

      Setting the retry cycle to 0 seems to cause the runtime message in Cockpit to show "Message is Null."

      What would be the expected behavior:

      We would expect to see the error message in Cockpit application.

      Hints (optional):

      org.camunda.bpm.engine.impl.cmd.DefaultJobRetryCmd.java

      checks in line 102 if the job is executed first time. If so it does some things and directly calls the incident handler to create an incident. Thereby it does not pass line 118 which sets the error message and stacktrace on the job entity.

      SUPPORT-9152.zip

        This is the controller panel for Smart Panels app

              thorben.lindhauer Thorben Lindhauer
              jacqueline.collins Jacqueline
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: