Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4203

OptimisticLockException in the intermediate timer making the process stuck

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 7.10.0.GA
    • Business Central
    • None
    • RHPAM 7.10 with a clustered Kie-server

    • False
    • False

    Description

      OptimisticLockException in the intermediate timer making the process stuck.
      See attached log file.

      // RHPAM timer execution starts for SessionInfo 102568 on server 2 – Process instance id: 20952
      2022-02-17 12:18:38,946 DEBUG [org.jbpm.services.ejb.timer.EJBTimerScheduler] (EJB default - 4) About to execute timer for job EjbTimerJob [timerJobInstance=GlobalJpaTimerJobInstance [timerServiceId=2sfd-workflow-cret-issues-debug.8-timerServiceId, getJobHandle()=EjbGlobalJobHandle [uuid=102568-20952-38]]]

      transaction error on Thread-4 for SessionInfo 102568 on server 2
      2022-02-17 12:18:39,047 DEBUG [org.hibernate.SQL] (EJB default - 4) update SessionInfo set lastModificationDate=?, startDate=?, OPTLOCK=?, rulesByteArray=? where id=? and OPTLOCK=?
      2022-02-17 12:18:39,048 WARN [com.arjuna.ats.arjuna] (EJB default - 4) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffff1638389b:-4d50a251:620d57e7:1b775, org.wildfly.transaction.client.AbstractTransaction$AssociatingSynchronization@321e7a3 >: javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : org.drools.persistence.info.SessionInfo#102568
      at org.hibernate.internal.ExceptionConverterImpl.wrapStaleStateException(ExceptionConverterImpl.java:226)
      at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:93)
      at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
      at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
      at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1478)
      -
      -
      Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : org.drools.persistence.info.SessionInfo#102568
      at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:2540)
      at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3375)
      at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3249)
      at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3650)
      at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:146)
      at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604)
      at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:478)
      at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:356)
      at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
      at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1472)

      Attachments

        Activity

          People

            kverlaen@redhat.com Kris Verlaenen
            rhn-support-luzrodri Luz Rodriguez
            Barbora Siskova Barbora Siskova
            Barbora Siskova Barbora Siskova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: