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

RS if attempts in assessment form is empty

    Details

      Description

      In assessment tool, the assessment form where to set score / attempts / comments:

      • Remove the number from the attempt field
      • Save -> red screen
      2017-01-24 12:10:48,160 [ajp-nio2-8003-exec-4] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N3-E111 ^%^ org.olat.core.logging
      
      https://xyz.olat.com/auth/CoachSite/0/Members/0/Identity/309526583/RepositoryEntry/17334342 ^%^ Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
      
      **RedScreen** For input string: ""
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_null</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class>org.olat.core.gui.components.form.flexible.impl.FormEvent</class>
      			<command>done</command>
      			<tostring>com:done,org.olat.core.gui.components.form.flexible.impl.FormEvent@2f23a1</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.course.assessment.ui.tool.AssessmentForm</controllername>
      		<controllername>org.olat.course.assessment.ui.tool.AssessmentIdentityCourseController</controllername>
      		<controllername>org.olat.modules.coach.ui.StudentCoursesController</controllername>
      		<controllername>org.olat.modules.coach.ui.StudentListController</controllername>
      		<controllername>org.olat.modules.coach.ui.CoachMainController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: For input string: ""
      -> 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:548)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:241)
         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::java.lang.NumberFormatException: For input string: ""
      -> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
         at java.lang.Integer.parseInt(Integer.java:592)
         at java.lang.Integer.parseInt(Integer.java:615)
         at org.olat.core.gui.components.form.flexible.impl.elements.IntegerElementImpl.getIntValue(IntegerElementImpl.java:94)
         at org.olat.course.assessment.ui.tool.AssessmentForm.isAttemptsDirty(AssessmentForm.java:116)
         at org.olat.course.assessment.ui.tool.AssessmentForm.doUpdateAssessmentData(AssessmentForm.java:261)
         at org.olat.course.assessment.ui.tool.AssessmentForm.formInnerEvent(AssessmentForm.java:185)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:430)
         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 - 35 minutes
                35m