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

RS in drag and drop tree of the e-Portfolio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3.8
    • Component/s: ePortfolio
    • Labels:
      None

      Description

      @Tester: I mitigate the issue but I cannot solve entirely the problem, it would need a rewrite of a lot of code.

      <dispatchinfo>
      	<componentinfo>
      		<compname>toc</compname>
      		<compclass>org.olat.core.gui.components.tree.MenuTree</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.portfolio.ui.structel.edit.EPTOCController</controllername>
      		<controllername>org.olat.portfolio.ui.structel.edit.EPStructureTreeAndDetailsEditController</controllername>
      		<controllername>org.olat.portfolio.ui.structel.EPMapViewController</controllername>
      		<controllername>org.olat.portfolio.ui.structel.EPMultipleMapController</controllername>
      		<controllername>org.olat.portfolio.ui.EPMapRunController</controllername>
      		<controllername>org.olat.portfolio.ui.EPOverviewController</controllername>
      		<controllername>org.olat.home.HomeMainController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      18:22:30,262 ERROR EPStructureManager:175 - could not move structure 300875782 from 4390913 to 4390912 ^%^
      >>>stack of 1.cause::org.olat.core.logging.DBRuntimeException: Update object failed in transaction. Query: epDefaultMap[key=4390912:title=For invitation (b)]
      -> at org.olat.core.commons.persistence.DBImpl.updateObject(DBImpl.java:585)
         at org.olat.portfolio.manager.EPStructureManager.addStructureToStructure(EPStructureManager.java:868)
         at org.olat.portfolio.manager.EPStructureManager.moveStructureToNewParentStructure(EPStructureManager.java:890)
         at org.olat.portfolio.manager.EPFrontendManager.moveStructureToNewParentStructure(EPFrontendManager.java:237)
         at org.olat.portfolio.ui.structel.edit.EPTOCController.moveStructureToNewParent(EPTOCController.java:409)
         at org.olat.portfolio.ui.structel.edit.EPTOCController.doDrop(EPTOCController.java:301)
         at org.olat.portfolio.ui.structel.edit.EPTOCController.event(EPTOCController.java:241)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
      >>>stack of 2.cause::org.hibernate.NonUniqueObjectException: A different object with the same identifier value was already associated with the session : [org.olat.portfolio.model.structel.EPDefaultMap#4390912]
      -> at org.hibernate.engine.internal.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:618)
         at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:301)
         at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:244)
         at org.hibernate.event.internal.DefaultUpdateEventListener.performSaveOrUpdate(DefaultUpdateEventListener.java:55)
         at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
         at org.hibernate.internal.SessionImpl.fireUpdate(SessionImpl.java:739)
         at org.hibernate.internal.SessionImpl.update(SessionImpl.java:731)
         at org.hibernate.internal.SessionImpl.update(SessionImpl.java:726)
         at org.olat.core.commons.persistence.DBImpl.updateObject(DBImpl.java:581)
         at org.olat.portfolio.manager.EPStructureManager.addStructureToStructure(EPStructureManager.java:868)
         at org.olat.portfolio.manager.EPStructureManager.moveStructureToNewParentStructure(EPStructureManager.java:890)
      18:22:30,262  WARN DBImpl:193 - Caught Exception in DBImpl.commit. ^%^
      >>>stack of 1.cause::org.olat.core.logging.DBRuntimeException: Try to commit a transaction in error status
      -> at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:743)
         at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1140)
         at org.olat.core.gui.components.Window.dispatchRequest(Window.java:345)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:234)
         at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
         at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:245)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:201)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:280)
         at org.olat.core.servlets.OpenOLATServlet.doGet(OpenOLATServlet.java:209)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
         at org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:166)
      >>>stack of 2.cause::java.lang.Exception: olat_rtexception_stackgenerator
      -> at org.olat.core.logging.OLATRuntimeException.<init>(OLATRuntimeException.java:57)
         at org.olat.core.logging.OLATRuntimeException.<init>(OLATRuntimeException.java:79)
         at org.olat.core.logging.DBRuntimeException.<init>(DBRuntimeException.java:44)
         at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:743)
         at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1140)
         at org.olat.core.gui.components.Window.dispatchRequest(Window.java:345)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:234)
         at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
         at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:245)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:201)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:280)
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Tester:
            Kirsten Scherer
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 2 hours, 30 minutes
                2h 30m