0 Replies Latest reply on Dec 11, 2006 5:38 AM by Fleury Ludovic

    Problem using command executor (batch update error)

    Fleury Ludovic Newbie

      Hey,

      I'm trying to use the command executor for asynchronous continuation. I get the following error :


      [java] 50034 [JbpmCommandExecutor] DEBUG org.jbpm.persistence.db.DbPersistenceService - committing hibernate transaction
      [java] 11:12:19,941 ERROR AbstractFlushingEventListener:301 - Could not synchronize database state with session
      [java] org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
      [java] at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61)
      [java] at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)
      [java] at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:24)
      [java] at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2338)
      [java] at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2242)
      [java] at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2542)
      [java] at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
      [java] at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
      [java] at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
      [java] at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
      [java] at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
      [java] at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
      [java] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
      [java] at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
      [java] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
      [java] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:162)
      [java] at org.jbpm.svc.Services.close(Services.java:211)
      [java] at org.jbpm.JbpmContext.close(JbpmContext.java:141)
      [java] at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:144)
      [java] at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79)


      I cannot find the problem.
      Thanks for your advices.

      LF