org.springframework.transaction.HeuristicCompletionException: Heuristic completion: outcome state is mixed; nested exception is org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Object of class [cinnamon.ObjectSystemData] with identifier [8723400]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [cinnamon.ObjectSystemData#8723400]

GitHub | dewarim | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    StaleObjectException in LuceneFilter can break further indexing.

    GitHub | 7 months ago | dewarim
    org.springframework.transaction.HeuristicCompletionException: Heuristic completion: outcome state is mixed; nested exception is org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Object of class [cinnamon.ObjectSystemData] with identifier [8723400]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [cinnamon.ObjectSystemData#8723400]

    Root Cause Analysis

    1. org.hibernate.StaleObjectStateException

      Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [cinnamon.ObjectSystemData#8723400]

      at org.grails.datastore.gorm.GormStaticApi.withTransaction()
    2. Grails GORM
      GormStaticApi.withNewTransaction
      1. org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:815)
      2. org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:767)
      3. org.grails.datastore.gorm.GormStaticApi.withNewTransaction(GormStaticApi.groovy:728)
      3 frames
    3. cinnamon.filters
      LuceneFilters$_closure1$_closure2$_closure5.doCall
      1. cinnamon.filters.LuceneFilters$_closure1$_closure2$_closure5.doCall(LuceneFilters.groovy:28)
      1 frame
    4. grails.plugin.springsecurity
      RequestHolderAuthenticationFilter.doFilter
      1. grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
      2. grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:53)
      2 frames
    5. cinnamon
      RequestTicketAuthenticationFilter.doFilter
      1. cinnamon.RequestTicketAuthenticationFilter.doFilter(RequestTicketAuthenticationFilter.groovy:102)
      1 frame
    6. grails.plugin.springsecurity
      MutableLogoutFilter.doFilter
      1. grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
      1 frame
    7. cinnamon.servlet
      ResponseFilter.doFilter
      1. cinnamon.servlet.ResponseFilter.doFilter(ResponseFilter.java:43)
      1 frame
    8. com.brandseye.cors
      CorsFilter.doFilter
      1. com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)
      1 frame
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames