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

Stale object exception in publisher

    XMLWordPrintable

    Details

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

      vilbert (tomcat18)

      Description

      Backport the hardened version of the the NotificationManager back to 8.4

      RedScreen on vilbert (tomcat18) 8.4.1
      2013-06-24 14:38:41,249 [TP-Processor20] ERROR OLATRuntimeException - OLAT::ERROR % N18-E6
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.8 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.8 %
      *RedScreen* null ::_::
      <dispatchinfo>
      <componentinfo>
      <compname>link_0</compname>
      <compclass>org.olat.core.gui.components.link.Link</compclass>
      <extendedinfo>n/a</extendedinfo>
      <event>
      <class>org.olat.core.gui.control.Event</class>
      <command>link_0</command>
      <tostring>com:link_0,org.olat.core.gui.control.Event@be46a54a</tostring>
      </event>
      </componentinfo>
      <controllerinfo>
      <controllername>org.olat.core.gui.control.generic.modal.DialogBoxController</controllername>
      <controllername>org.olat.group.ui.edit.MemberListController</controllername>
      <controllername>org.olat.group.ui.edit.BusinessGroupMembersController</controllername>
      <controllername>org.olat.group.ui.edit.BusinessGroupEditController</controllername>
      <controllername>org.olat.group.ui.run.BusinessGroupMainRunController</controllername>
      <controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      <controllername>org.olat.core.commons.chiefcontrollers.controller.simple.SimpleBaseController</controllername>
      <controllername>org.olat.core.commons.chiefcontrollers.BaseChiefController</controllername>
      </controllerinfo>
      </dispatchinfo>
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: null
      -> at org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:107)
      at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:57)
      at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:46)
      at org.olat.core.gui.components.Window.dispatchRequest(Window.java:508)
      at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:226)
      at org.olat.core.gui.components.Component.dispatchRequest(Component.java:192)
      at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:221)
      at org.olat.core.dispatcher.DispatcherAction.execute(DispatcherAction.java:154)
      at org.olat.core.servlets.OLATServlet.doPost(OLATServlet.java:155)
      at org.olat.core.servlets.OLATServlet.doGet(OLATServlet.java:128)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      >>> stack of 2.cause::javax.persistence.OptimisticLockException: null
      -> at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1413)
      at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1329)
      at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310)
      at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:273)
      at org.olat.notifications.NotificationsManagerImpl.getPublisher(NotificationsManagerImpl.java:628)
      at org.olat.notifications.NotificationsManagerImpl.getPublisherForUpdate(NotificationsManagerImpl.java:601)
      at org.olat.notifications.NotificationsManagerImpl.subscribe(NotificationsManagerImpl.java:812)
      at org.olat.core.util.mail.manager.MailManager.subscribe(MailManager.java:160)
      at org.olat.core.util.mail.manager.MailManager.saveDBMessage(MailManager.java:689)
      at org.olat.core.util.mail.manager.MailManager.sendMessage(MailManager.java:450)
      at org.olat.core.util.mail.MailerWithTemplate.sendWithContext(MailerWithTemplate.java:304)
      >>> stack of 3.cause::org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): org.olat.notifications.PublisherImpl#327680
      -> at org.hibernate.loader.Loader.checkVersion(Loader.java:1444)
      at org.hibernate.loader.Loader.instanceAlreadyLoaded(Loader.java:1553)
      at org.hibernate.loader.Loader.getRow(Loader.java:1489)
      at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:712)
      at org.hibernate.loader.Loader.processResultSet(Loader.java:940)
      at org.hibernate.loader.Loader.doQuery(Loader.java:910)
      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:341)
      at org.hibernate.loader.Loader.doList(Loader.java:2516)
      at org.hibernate.loader.Loader.doList(Loader.java:2502)
      at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2332)
      at org.hibernate.loader.Loader.list(Loader.java:2327)

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            cfranck Christian Franck
            Tester:
            Christian Franck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m