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

Gradebook: Error on log when an assessment with last score is marked required on lesson builder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.7, 19.2, 20.0
    • Fix Version/s: 19.3, 20.0
    • Component/s: Gradebook
    • Labels:
      None
    • 19 status:
      Verified
    • 12 status:
      Please Merge
    • Test Plan:
      Hide

      1. Go to Lessons
      2. Click "Add Content +"
      3. Click "Link to a Test or Quiz"
      4. Click "Create new quiz using Tests and Quizzes"
      5. Click "Add"
      6. Fill "Assessment Title" and click "Create"
      7. Add Question Ex: Multiple Choice
      8. Fill "Question Text" and answers
      9. Click Save
      10. Click "Settings"
      11. Click "Grading and Feedback"
      12. Select "last score"
      13. Click "Save Settings and Publish"
      14. Click "Publish"
      15. Click "Continue with Add Quiz, after you have created the new quiz"
      16. Click "Use selected item"
      17. Click icon "Edit Test Assessment"
      18. Click "Require that the student submit this assessment."
      19. Click "Update Item"

      Show
      1. Go to Lessons 2. Click "Add Content +" 3. Click "Link to a Test or Quiz" 4. Click "Create new quiz using Tests and Quizzes" 5. Click "Add" 6. Fill "Assessment Title" and click "Create" 7. Add Question Ex: Multiple Choice 8. Fill "Question Text" and answers 9. Click Save 10. Click "Settings" 11. Click "Grading and Feedback" 12. Select "last score" 13. Click "Save Settings and Publish" 14. Click "Publish" 15. Click "Continue with Add Quiz, after you have created the new quiz" 16. Click "Use selected item" 17. Click icon "Edit Test Assessment" 18. Click "Require that the student submit this assessment." 19. Click "Update Item"

      Description

      Error on log

      3-Jun-2019 02:55:53.116 ERROR [http-nio-20113-exec-7] org.sakaiproject.tool.assessment.services.GradingService.getLastSubmittedAssessmentGradingByAgentId
      java.lang.NullPointerException
      at org.sakaiproject.tool.assessment.facade.AssessmentGradingFacadeQueries.getLastSubmittedAssessmentGradingByAgentId(AssessmentGradingFacadeQueries.java:1055)
      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      at com.sun.proxy.$Proxy155.getLastSubmittedAssessmentGradingByAgentId(Unknown Source)
      at org.sakaiproject.tool.assessment.services.GradingService.getLastSubmittedAssessmentGradingByAgentId(GradingService.java:653)
      at org.sakaiproject.lessonbuildertool.service.SamigoEntity.getSubmission(SamigoEntity.java:524)
      at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.isItemComplete(SimplePageBean.java:5371)
      at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.isPageComplete(SimplePageBean.java:5552)
      at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.isPageComplete(SimplePageBean.java:5532)
      at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.track(SimplePageBean.java:5019)
      at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.track(SimplePageBean.java:4954)
      at org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.fillComponents(ShowPageProducer.java:943)
      at uk.org.ponder.rsf.view.support.ViewCollector.fillComponents(ViewCollector.java:56)
      at uk.org.ponder.rsf.view.support.LayoutCollector.fillComponents(LayoutCollector.java:68)
      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      at com.sun.proxy.$Proxy397.fillComponents(Unknown Source)
      at uk.org.ponder.rsf.view.support.ViewGenerator.generateView(ViewGenerator.java:53)
      at uk.org.ponder.rsf.processor.support.RSFRenderHandler$1.run(RSFRenderHandler.java:79)
      at uk.org.ponder.rsf.processor.support.RequestInvoker$1.run(RequestInvoker.java:46)
      at uk.org.ponder.util.CollectingRunnableInvoker$1.run(CollectingRunnableInvoker.java:25)
      at uk.org.ponder.rsf.flow.support.BasicScopedAlterationWrapper.invokeRunnable(BasicScopedAlterationWrapper.java:59)
      at uk.org.ponder.rsf.flow.support.BasicScopedAlterationWrapper$$FastClassBySpringCGLIB$$84f89202.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jesusmmp Jesus Maria Mendez
                  Reporter:
                  jesusmmp Jesus Maria Mendez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration