org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

Stack Overflow | Jils | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    grails/hibernate: get org.hibernate.StaleStateException in a Job

    Stack Overflow | 7 months ago | Jils
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

    Root Cause Analysis

    1. org.hibernate.StaleStateException

      Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

      at bosmonitor.MyJob$_execute_closure1.doCall()
    2. bosmonitor
      MyJob.execute
      1. bosmonitor.MyJob$_execute_closure1.doCall(MyJob.groovy:27)
      2. bosmonitor.MyJob.execute(MyJob.groovy:25)
      2 frames
    3. grails.plugins.quartz
      GrailsJobFactory$GrailsJob.execute
      1. grails.plugins.quartz.GrailsJobFactory$GrailsJob.execute(GrailsJobFactory.java:102)
      1 frame
    4. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      2 frames