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

RS if guest try to bookmark a question

    XMLWordPrintable

    Details

      Description

      • Make course with a test course element
      • Change the settings to allow guest
      • A guest try to mark a question
      • Red screen
      11:00:08,401 ERROR OLATRuntimeException:175 - OLAT::ERROR ^%^ N1-E6 ^%^ org.olat.core.logging 
      
      https://xyz.de/auth/RepositoryEntry/1951694849/CourseNode/69741547242995
      Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
      **RedScreen** org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.ims.qti21.model.jpa.AssessmentTestMarksImpl.identity
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_at_run</compname> <compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.ims.qti21.ui.QTIWorksAssessmentTestEvent</class&gt;
      			<command>mark</command>
      			<tostring>com:mark,org.olat.ims.qti21.ui.QTIWorksAssessmentTestEvent@3306ec</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.ims.qti21.ui.AssessmentTestDisplayController$QtiWorksController</controllername>
      		<controllername>org.olat.ims.qti21.ui.AssessmentTestDisplayController</controllername>
      		<controllername>org.olat.course.nodes.iq.QTI21AssessmentRunController</controllername>
      		<controllername>org.olat.course.run.RunMainController</controllername>
      		<controllername>org.olat.course.run.CourseRuntimeController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.ims.qti21.model.jpa.AssessmentTestMarksImpl.identity
      -> at org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:116)
         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:549)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:242)
         at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
         at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:273)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:190)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:292)
         at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:235)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
      >>> stack of 2.cause::javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.ims.qti21.model.jpa.AssessmentTestMarksImpl.identity
      -> at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)
         at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)
         at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:162)
         at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:780)
         at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:758)
         at org.olat.ims.qti21.manager.AssessmentTestMarksDAO.createAndPersistTestMarks(AssessmentTestMarksDAO.java:61)
         at org.olat.ims.qti21.manager.QTI21ServiceImpl.createMarks(QTI21ServiceImpl.java:564)
         at org.olat.ims.qti21.ui.AssessmentTestDisplayController.toogleMark(AssessmentTestDisplayController.java:661)
         at org.olat.ims.qti21.ui.AssessmentTestDisplayController.processQTIEvent(AssessmentTestDisplayController.java:651)
         at org.olat.ims.qti21.ui.AssessmentTestDisplayController.event(AssessmentTestDisplayController.java:448)
         at org.olat.core.gui.control.DefaultController$1.run(DefaultController.java:246)
      >>> stack of 3.cause::org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.ims.qti21.model.jpa.AssessmentTestMarksImpl.identity
      -> at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:92)
         at org.hibernate.action.internal.AbstractEntityInsertAction.nullifyTransientReferencesIfNotAlready(AbstractEntityInsertAction.java:115)
         at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:69)
         at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:623)
         at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:277)
         at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:258)
         at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:303)
         at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:318)
         at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:275)
         at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:182)
         at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:113)
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m