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

T&Q: exception with no start date causes NPE

    XMLWordPrintable

    Details

    • 21 Status:
      Verified
    • 20 status:
      Verified
    • Test Plan:
      Hide
      1. Have the browser console open and the server logs (http://nightly2.sakaiproject.org/)
      2. Create a quiz and set a due date a few minutes from now, no late allowed
      3. Add an exception with a due date 30 minutes from now
      4. Set a time limit of 1 hour for the exception
      5. Click Save

      Currently there is a stack trace and the instructor gets kicked out of the quiz

      Expected: an error message should display indicating the due date or allowed time needs to be adjusted

       

      Show
      Have the browser console open and the server logs ( http://nightly2.sakaiproject.org/ ) Create a quiz and set a due date a few minutes from now, no late allowed Add an exception with a due date 30 minutes from now Set a time limit of 1 hour for the exception Click Save Currently there is a stack trace and the instructor gets kicked out of the quiz Expected: an error message should display indicating the due date or allowed time needs to be adjusted  

      Description

      See SAK-44250. The message is displaying for the site due date / time limit. Just adding a due date to the site, and then adding a due date/time and time limit to an excepted student when the time limit is greater than the time span, there is a stack trace.

      Adding screen shot of expected message for QA.

       

      — Stack trace ----

      ep 14, 2020 8:45:11 PM com.sun.faces.lifecycle.InvokeApplicationPhase executeep 14, 2020 8:45:11 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute
       WARNING: #\{assessmentSettings.addExtendedTime}: java.lang.NullPointerException
       javax.faces.FacesException: #\{assessmentSettings.addExtendedTime}: java.lang.NullPointerException
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:119)
       at javax.faces.component.UICommand.broadcast(UICommand.java:330)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
       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:426)
       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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:360)
       at org.sakaiproject.jsf2.util.JsfTool.doPost(JsfTool.java:250)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:352)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:508)
       at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1502)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1254)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1088)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:499)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:275)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:163)
       at org.sakaiproject.portal.charon.handlers.WorksiteHandler.doPost(WorksiteHandler.java:69)
       at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1175)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:475)
       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:53)
       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:200)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
       at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:679)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
       at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
       at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
       at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
       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)
       Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
       ... 65 more
       Caused by: java.lang.NullPointerException
       at org.sakaiproject.tool.assessment.util.TimeLimitValidator.availableLongerThanTimer(TimeLimitValidator.java:59)
       at org.sakaiproject.tool.assessment.util.ExtendedTimeValidator.validateEntries(ExtendedTimeValidator.java:164)
       at org.sakaiproject.tool.assessment.util.ExtendedTimeValidator.validateEntry(ExtendedTimeValidator.java:78)
       at org.sakaiproject.tool.assessment.ui.bean.author.AssessmentSettingsBean.addExtendedTime(AssessmentSettingsBean.java:1941)
       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 org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:74)
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
       ... 66 more
       14-Sep-2020 20:45:11.217 WARN [http-nio-20013-exec-15] org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent Failed to buffer content.
       org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: java.lang.NullPointerException
       at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:520)
       at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1502)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1254)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1088)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:499)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:275)
       at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:163)
       at org.sakaiproject.portal.charon.handlers.WorksiteHandler.doPost(WorksiteHandler.java:69)
       at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1175)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:475)
       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:53)
       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:200)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
       at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:679)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
       at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
       at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
       at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
       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)
       Caused by: javax.servlet.ServletException: java.lang.NullPointerException
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:683)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
       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:426)
       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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:360)
       at org.sakaiproject.jsf2.util.JsfTool.doPost(JsfTool.java:250)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:352)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:508)
       ... 35 more
       Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
       at javax.faces.component.UICommand.broadcast(UICommand.java:330)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
       ... 58 more
       Caused by: java.lang.NullPointerException
       at org.sakaiproject.tool.assessment.util.TimeLimitValidator.availableLongerThanTimer(TimeLimitValidator.java:59)
       at org.sakaiproject.tool.assessment.util.ExtendedTimeValidator.validateEntries(ExtendedTimeValidator.java:164)
       at org.sakaiproject.tool.assessment.util.ExtendedTimeValidator.validateEntry(ExtendedTimeValidator.java:78)
       at org.sakaiproject.tool.assessment.ui.bean.author.AssessmentSettingsBean.addExtendedTime(AssessmentSettingsBean.java:1941)
       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 org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:74)
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  bjones86 Brian Jones
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration