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

Quartz scheduler error for deleted assignment

    XMLWordPrintable

    Details

    • Test Plan:
      Hide
      1. Create an assignment that is 1 day and 5 minutes out from current time that has the 24 email notification option checked.
      2. Delete that assignment
      3. Check the server logs at the time the email notification would have been sent and verify there are no errors.
      Show
      Create an assignment that is 1 day and 5 minutes out from current time that has the 24 email notification option checked. Delete that assignment Check the server logs at the time the email notification would have been sent and verify there are no errors.

      Description

      Followed the test plan inĀ SAK-42416. The email notification was not sent but I checked both the mail server and the server logs and saw an error:

      29-Aug-2019 20:15:00.431 WARN [QuartzScheduler_Worker-2] org.sakaiproject.authz.impl.SakaiSecurity.unlock unlock(): null: null asn.all.groups /site/fb1ff561-30bf-4288-ad89-39d9c561b596
      29-Aug-2019 20:15:00.436 ERROR [QuartzScheduler_Worker-2] org.sakaiproject.assignment.impl.reminder.AssignmentDueReminderServiceImpl.execute user=null lock=asn.read resource=9de139ba-bb91-44e0-9a2b-8604bc81f355
      org.sakaiproject.exception.PermissionException: user=null lock=asn.read resource=9de139ba-bb91-44e0-9a2b-8604bc81f355 id: 9de139ba-bb91-44e0-9a2b-8604bc81f355
      	at org.sakaiproject.assignment.impl.AssignmentServiceImpl.checkAssignmentAccessibleForUser(AssignmentServiceImpl.java:2658)
      	at org.sakaiproject.assignment.impl.AssignmentServiceImpl.getAssignment(AssignmentServiceImpl.java:1285)
      	at sun.reflect.GeneratedMethodAccessor3543.invoke(Unknown Source)
      	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.$Proxy166.getAssignment(Unknown Source)
      	at org.sakaiproject.assignment.impl.reminder.AssignmentDueReminderServiceImpl.execute(AssignmentDueReminderServiceImpl.java:117)
      	at org.sakaiproject.component.app.scheduler.jobs.ScheduledInvocationJob.execute(ScheduledInvocationJob.java:41)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      	
      	
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code