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

NPE from isCalcQuestion when saving an answer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.5, 11.0
    • Fix Version/s: 11.0, 12.0
    • Labels:
      None
    • 11 status:
      Resolved
    • Previous Issue Keys:
      SAM-2653

      Description

      We have had about 40 instances of this bug over several months. It appears to be in the submission/update code for assessment delivery, but we're not sure how to reproduce it.

      Sample bug:

      request-path: /portal/tool/beb0217d-6217-4699-a86f-7d9cb62d24e2/jsf/delivery/deliverAssessment
      
      stack trace:
      
      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: #{delivery.next_page}: javax.faces.el.EvaluationException: java.lang.RuntimeException: java.lang.NullPointerException
          at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:75)
      caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: #{delivery.next_page}: javax.faces.el.EvaluationException: java.lang.RuntimeException: java.lang.NullPointerException
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1544)
      caused by: javax.servlet.ServletException: #{delivery.next_page}: javax.faces.el.EvaluationException: java.lang.RuntimeException: java.lang.NullPointerException
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      caused by: javax.faces.FacesException: #{delivery.next_page}: javax.faces.el.EvaluationException: java.lang.RuntimeException: java.lang.NullPointerException
          at javax.faces.component.UICommand.broadcast(UICommand.java:332)
      caused by: javax.faces.el.EvaluationException: java.lang.RuntimeException: java.lang.NullPointerException
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
      caused by: java.lang.RuntimeException: java.lang.NullPointerException
          at org.sakaiproject.tool.assessment.services.GradingService.storeGrades(GradingService.java:768)
      caused by: java.lang.NullPointerException
          at org.sakaiproject.tool.assessment.services.GradingService.isCalcQuestion(GradingService.java:2969)
          at org.sakaiproject.tool.assessment.services.GradingService.storeGrades(GradingService.java:816)
          at org.sakaiproject.tool.assessment.services.GradingService.storeGrades(GradingService.java:768)
          at org.sakaiproject.tool.assessment.ui.listener.delivery.SubmitToGradingActionListener.persistAssessmentGrading(SubmitToGradingActionListener.java:464)
          at org.sakaiproject.tool.assessment.ui.listener.delivery.SubmitToGradingActionListener.submitToGradingService(SubmitToGradingActionListener.java:288)
          at org.sakaiproject.tool.assessment.ui.listener.delivery.SubmitToGradingActionListener.processAction(SubmitToGradingActionListener.java:129)
          at org.sakaiproject.tool.assessment.ui.bean.delivery.DeliveryBean.next_page(DeliveryBean.java:1861)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  smarquard Stephen Marquard
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration