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

Problems when autosubmit job runs during startup

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.3
    • Fix Version/s: 10.5
    • Labels:
      None
    • 10 status:
      Resolved
    • Previous Issue Keys:
      SAM-2461

      Description

      When the auto submit job runs during startup, the IntegrationContextFactory is unable to read the integration context and throws an exception. I believe this can later cause a problem with the AgentFacade as describe in SAM-2417 where Samigo stops working completely since it tries to set this up as static variables. Better checking and initialization of this need to be fixed.

      Dec 23, 2014 5:00:45 AM org.apache.catalina.startup.HostConfig deployWAR
      Dec 23, 2014 5:00:45 AM org.apache.catalina.startup.HostConfig deployWAR
      2014-12-23 05:00:45,600 ERROR QuartzScheduler_Worker-1 org.sakaiproject.tool.assessment.integration.context.IntegrationContextFactory - Unable to read integration context: java.lang.NullPointerException
      2014-12-23 05:00:45,636 ERROR QuartzScheduler_Worker-1 org.quartz.core.JobRunShell - Job DEFAULT.Auto Submit threw an unhandled Exception:
      java.lang.ExceptionInInitializerError
              at org.sakaiproject.tool.assessment.facade.AssessmentGradingFacadeQueries.completeItemGradingData(AssessmentGradingFacadeQueries.java:3287)
              at org.sakaiproject.tool.assessment.facade.AssessmentGradingFacadeQueries.autoSubmitAssessments(AssessmentGradingFacadeQueries.java:3053)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
              at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
              at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
              at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
              at com.sun.proxy.$Proxy102.autoSubmitAssessments(Unknown Source)
              at org.sakaiproject.tool.assessment.services.GradingService.autoSubmitAssessments(GradingService.java:3140)
              at org.sakaiproject.tool.assessment.services.AutoSubmitAssessmentsJob.execute(AutoSubmitAssessmentsJob.java:77)
              at org.sakaiproject.component.app.scheduler.jobs.SpringJobBeanWrapper.execute(SpringJobBeanWrapper.java:70)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      Caused by: java.lang.NullPointerException
              at org.sakaiproject.tool.assessment.facade.AgentFacade.<clinit>(AgentFacade.java:55)
              ... 20 more
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  buckett Matthew Buckett
                  Reporter:
                  jonespm Matthew Jones
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration