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

Incidents show PersistenceException instead of the actual exception

    Details

      Description

      Reproduce steps:

      • Create a process application with a service task
      • Let the delegate call an EJB
      • Throw a runtime exception in the EJB

      Problem:
      org.apache.ibatis.exceptions.PersistenceException is displayed

      Expected behavior:
      The actual EJB exception is displayed

      Hints (optional):
      Stacktrace excerpt:

      ### Error querying database. Cause: java.sql.SQLException: Transaction cannot proceed STATUS_MARKED_ROLLBACK
      ### The error may exist in org/camunda/bpm/engine/impl/mapping/entity/Execution.xml
      ### The error may involve org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.selectExecutionsByProcessInstanceId
      ### The error occurred while executing a query
      ### SQL: select * from ACT_RU_EXECUTION where PROC_INST_ID_ = ?
      ### Cause: java.sql.SQLException: Transaction cannot proceed STATUS_MARKED_ROLLBACK 
      

      Hint:
      Has impact not only on incidents

        Issue Links

          Activity

          Hide
          johndament John D. Ament [X] (Inactive) added a comment -

          This seems to happen in a lot of cases, other than what's listed.

          • Send a message (using a delegate) where the message isn't expected to be received.
          • cause a poorly formed db query to be executed
          Show
          johndament John D. Ament [X] (Inactive) added a comment - This seems to happen in a lot of cases, other than what's listed. Send a message (using a delegate) where the message isn't expected to be received. cause a poorly formed db query to be executed

            People

            • Assignee:
              sebastian.menski Sebastian Menski
              Reporter:
              matthijs.burke Matthijs Burke
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development