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

NPE when downloading a grade report

    XMLWordPrintable

    Details

    • 12 status:
      Resolved
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      I'm getting a NPE when downloading the grade report.  This happens in some classes, not all.  Below is the stack trace I am getting :

       

      25-May-2018 14:12:24.910 WARN [http-apr-8166-exec-464] org.sakaiproject.assignment.impl.AssignmentServiceImpl.lambda$getHttpAccess$0 Could not stream the grades for reference: /assignment/a/PE-PEDS-Sp18
      java.lang.NullPointerException
       at org.sakaiproject.assignment.impl.GradeSheetExporter.getGradesSpreadsheet(GradeSheetExporter.java:203)
       at org.sakaiproject.assignment.impl.AssignmentServiceImpl.lambda$getHttpAccess$0(AssignmentServiceImpl.java:493)
       at org.sakaiproject.access.tool.AccessServlet.dispatch(AccessServlet.java:346)
       at org.sakaiproject.access.tool.AccessServlet.doGet(AccessServlet.java:192)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
       at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.sakaiproject.oauth.filter.OAuthPostFilter.doFilter(OAuthPostFilter.java:76)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:467)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.sakaiproject.oauth.filter.OAuthPreFilter.doFilter(OAuthPreFilter.java:74)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
       at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
       at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
       at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
       at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
       at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2380)
       at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.lang.Thread.run(Thread.java:748)

       

      I still cannot identify the differences from the sites that I can export and sites that I cannot.  On the site I can reproduce, these are the steps:

       

      1. Login to Sakai
      2. Access the Course site
      3. Access the Assignments tool
      4. Click on the Grade Report tab
      5. Click on Download Spreadsheet link

      Expected Result : Export file should be downloaded

      Actual : Result : File downloaded is a 0 byte file.  No error on screen showing there was an error.  Need to view tomcat logs to see the stack.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ern Earle R Nietzel
                Reporter:
                karagon Kenneth Aragon
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code