Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-2464

Error by update of efficiency statement during course publish

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.2.1
    • Component/s: None
    • Labels:
      None

      Description

      14:44:39,938 ERROR ExceptionMapperStandardImpl:39 - HHH000346: Error during managed flush [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]
      14:44:39,940  WARN DBImpl:203 - Caught Exception in DBImpl.commit.
      >>>stack of 1.cause::javax.persistence.RollbackException: Error while committing the transaction
      -> at org.hibernate.internal.ExceptionConverterImpl.convertCommitException(ExceptionConverterImpl.java:75)
         at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:71)
         at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:712)
         at org.olat.commons.coordinate.cluster.ClusterSyncer.doInSync(ClusterSyncer.java:113)
         at org.olat.commons.coordinate.cluster.ClusterSyncer.doInSync(ClusterSyncer.java:129)
         at org.olat.course.assessment.manager.EfficiencyStatementManager.updateEfficiencyStatements(EfficiencyStatementManager.java:686)
         at org.olat.course.assessment.manager.UpdateEfficiencyStatementsWorker.run(UpdateEfficiencyStatementsWorker.java:69)
         at org.olat.core.commons.services.taskexecutor.model.DBSecureRunnable.run(DBSecureRunnable.java:42)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      >>>stack of 2.cause::javax.persistence.OptimisticLockException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
      -> at org.hibernate.internal.ExceptionConverterImpl.wrapStaleStateException(ExceptionConverterImpl.java:212)
         at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:86)
         at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)
         at org.hibernate.internal.ExceptionConverterImpl.convertCommitException(ExceptionConverterImpl.java:56)
         at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:71)
         at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:712)
         at org.olat.commons.coordinate.cluster.ClusterSyncer.doInSync(ClusterSyncer.java:113)
         at org.olat.commons.coordinate.cluster.ClusterSyncer.doInSync(ClusterSyncer.java:129)
         at org.olat.course.assessment.manager.EfficiencyStatementManager.updateEfficiencyStatements(EfficiencyStatementManager.java:686)
         at org.olat.course.assessment.manager.UpdateEfficiencyStatementsWorker.run(UpdateEfficiencyStatementsWorker.java:69)
         at org.olat.core.commons.services.taskexecutor.model.DBSecureRunnable.run(DBSecureRunnable.java:42)
      >>>stack of 3.cause::org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
      -> at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:67)
         at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:54)
         at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:46)
         at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3186)
         at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3065)
         at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3445)
         at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:145)
         at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:586)
         at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:460)
         at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
         at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              srosse Stéphane Rossé
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 5 minutes
                3h 5m