Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-25185

Forum message delete failure due to HibernateOptimisticLockingFailureException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.7.2
    • Fix Version/s: None
    • Component/s: Messages Tool
    • Labels:
      None
    • Previous Issue Keys:
      MSGCNTR-710

      Description

      One of CTools server showed elevated CPU and he CPU wait time. It is related to user deletes a forums message.

      The follow stacktrace is in server log file:

      2012-08-07 12:22:17,898 [TP-Processor96] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
      org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.sakaiproject.component.app.mess
      ageforums.dao.hibernate.MessageImpl#837123]
      at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1759)
      ...
      2012-08-07 12:22:17,909 [TP-Processor96] ERROR com.sun.faces.lifecycle.InvokeApplicationPhase - #

      {ForumTool.processDfMsgDeleteConfirmYes}: javax.faces.el.EvaluationExcep
      tion: org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [org.sakaiproject.component.app.messageforums.dao.hibernate.MessageI
      mpl] with identifier [837123]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction
      (or unsaved-value mapping was incorrect): org.sakaiproject.component.app.messageforums.dao.hibernate.MessageImpl#837123
      javax.faces.FacesException: #{ForumTool.processDfMsgDeleteConfirmYes}

      : javax.faces.el.EvaluationException: org.springframework.orm.hibernate3.HibernateOptimisticLockingF
      ailureException: Object of class [org.sakaiproject.component.app.messageforums.dao.hibernate.MessageImpl] with identifier [837123]: optimistic locking failed; nested exc
      eption is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.sakaiproject.componen
      t.app.messageforums.dao.hibernate.MessageImpl#837123]
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
      at javax.faces.component.UICommand.broadcast(UICommand.java:312)
      ...
      at java.lang.Thread.run(Thread.java:662)
      Caused by: javax.faces.el.EvaluationException: org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [org.sakaiproject.component
      .app.messageforums.dao.hibernate.MessageImpl] with identifier [837123]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was u
      pdated or deleted by another transaction (or unsaved-value mapping was incorrect): org.sakaiproject.component.app.messageforums.dao.hibernate.MessageImpl#837123
      at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
      ... 56 more

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  bkirschn Beth Kirschner
                  Reporter:
                  arwhyte Anthony Whyte
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration