Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42728

Import ZIP can result in java.lang.NumberFormatException: multiple points

    XMLWordPrintable

    Details

    • 20 status:
      Resolved
    • 19 status:
      Verified
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      To replicate:

      1) Tests * Quizzes -> Add
      2) Import the following XML
      3) Confirm no errors in logs

      05-Nov-2019 15:45:55.607 ERROR [http-nio-9080-exec-2] org.sakaiproject.tool.assessment.qti.helper.AuthoringHelper.createImportedAssessment multiple points
      java.lang.NumberFormatException: multiple points
              at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
              at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
              at java.lang.Double.parseDouble(Double.java:538)
              at java.lang.Double.valueOf(Double.java:502)
              at org.sakaiproject.tool.assessment.qti.helper.ExtractionHelper.addItemProperties(ExtractionHelper.java:1723)
              at org.sakaiproject.tool.assessment.qti.helper.ExtractionHelper.updateItem(ExtractionHelper.java:1582)
              at org.sakaiproject.tool.assessment.qti.helper.ExtractionHelper.updateItem(ExtractionHelper.java:1543)
              at org.sakaiproject.tool.assessment.qti.helper.AuthoringHelper.createImportedAssessment(AuthoringHelper.java:674)
              at org.sakaiproject.tool.assessment.qti.helper.AuthoringHelper.createImportedAssessment(AuthoringHelper.java:501)
              at org.sakaiproject.tool.assessment.services.qti.QTIService.createImportedAssessment(QTIService.java:107)
              at org.sakaiproject.tool.assessment.ui.bean.qti.XMLImportBean.createImportedAssessment(XMLImportBean.java:418)
              at org.sakaiproject.tool.assessment.ui.bean.qti.XMLImportBean.processFile(XMLImportBean.java:290)
              at org.sakaiproject.tool.assessment.ui.bean.qti.XMLImportBean.importAssessment(XMLImportBean.java:173)
              at org.sakaiproject.tool.assessment.ui.bean.qti.XMLImportBean.importAssessment(XMLImportBean.java:147)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.el.parser.AstValue.invoke(AstValue.java:247)
              at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
              at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
              at javax.faces.component.MethodBindingValueChangeListener.processValueChange(MethodBindingValueChangeListener.java:97)
              at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:155)
              at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:839)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:835)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                maintenanceteam Core Team
                Reporter:
                ottenhoff Sam Ottenhoff
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration