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

RS import question with comma for float

    XMLWordPrintable

    Details

      Description

      2016-02-01 18:34:05,013 [ajp-nio2-8013-exec-14] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N13-E19 
      
      https://xyz.frentix.com/auth/RepositoryEntry/138772482/Editor/0 ^%^ Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36 ^%^ **RedScreen** For input string: "1,0"
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_stepslayout</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.components.form.flexible.impl.FormEvent</class&gt;
      			<command>done</command>
      			<tostring>com:done,org.olat.core.gui.components.form.flexible.impl.FormEvent@2f23a1</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.core.gui.control.generic.wizard.StepsMainRunController</controllername>
      		<controllername>org.olat.ims.qti.editor.QTIEditorMainController</controllername>
      		<controllername>org.olat.ims.qti.QTIRuntimeController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: For input string: "1,0"
      -> 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:536)
         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:298)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:216)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:289)
         at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:232)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      >>> stack of 2.cause::java.lang.NumberFormatException: For input string: "1,0"
      -> at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
         at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
         at java.lang.Float.parseFloat(Float.java:451)
         at org.olat.ims.qti.questionimport.CSVToQuestionConverter.processPoints(CSVToQuestionConverter.java:376)
         at org.olat.ims.qti.questionimport.CSVToQuestionConverter.processLine(CSVToQuestionConverter.java:107)
         at org.olat.ims.qti.questionimport.CSVToQuestionConverter.parse(CSVToQuestionConverter.java:85)
         at org.olat.ims.qti.questionimport.TextInputController.convertInputField(TextInputController.java:107)
         at org.olat.ims.qti.questionimport.TextInputController.validateFormLogic(TextInputController.java:90)
         at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:462)
         at org.olat.core.gui.components.form.flexible.impl.Form.submitAndNext(Form.java:441)
         at org.olat.core.gui.control.generic.wizard.StepsMainRunController.formInnerEvent(StepsMainRunController.java:210)
      

        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 - 20 minutes
                20m