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

RS if resuming a test which is ended in XML but not in the database

    XMLWordPrintable

    Details

      Description

      I don't know how to reproduce the discrepancy between the XML file with states of the test session and the database. There are no errors in log files during the test. But it is easy to check during the resume procedure if the test is "ended" and if it's the case, end the test for the database and show the end message.

      2017-07-05 15:40:55,524 [ajp-nio2-8005-exec-258] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N5-E116 ^%^ org.olat.core.loggin
      https://olat.xyz.ch/auth/RepositoryEntry/332922894/CourseNode/95832836205748
      Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
      
      **RedScreen** Test has already ended
      <dispatchinfo>
      	<componentinfo>
      		<compname>start</compname>
      		<compclass>org.olat.core.gui.components.link.Link</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>start</command>
      			<tostring>com:start,org.olat.core.gui.control.Event@68ac481</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<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: Test has already ended
      -> 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:648)
      >>> stack of 2.cause::uk.ac.ed.ph.jqtiplus.exception.QtiCandidateStateException: Test has already ended
      -> at uk.ac.ed.ph.jqtiplus.running.TestSessionController.assertTestNotEnded(TestSessionController.java:1784)
         at uk.ac.ed.ph.jqtiplus.running.TestSessionController.assertTestOpen(TestSessionController.java:1802)
         at uk.ac.ed.ph.jqtiplus.running.TestSessionController.unsuspendTestSession(TestSessionController.java:1979)
         at org.olat.ims.qti21.ui.AssessmentTestDisplayController.resumeSession(AssessmentTestDisplayController.java:1462)
         at org.olat.ims.qti21.ui.AssessmentTestDisplayController.initOrResumeAssessmentTestSession(AssessmentTestDisplayController.java:337)
         at org.olat.ims.qti21.ui.AssessmentTestDisplayController.<init>(AssessmentTestDisplayController.java:251)
         at org.olat.course.nodes.iq.QTI21AssessmentRunController.doStart(QTI21AssessmentRunController.java:570)
         at org.olat.course.nodes.iq.QTI21AssessmentRunController.event(QTI21AssessmentRunController.java:444)
         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)
      

        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 - 1 hour, 35 minutes
                1h 35m