Uploaded image for project: 'Scheduler'
  1. Scheduler
  2. MGNLSCH-61

Notification for long running job do not work with scheduler 2.2.2 version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 2.2.2
    • None

    Description

      With MGNLSCH-60 fix for un-closed session was introduced, but that break long running job notification. Reason is new class JobResult introduced in CommandAction cannot be cast back to integer while executing AbstractCommandAction.

      2015-09-25 16:38:00,229 ERROR org.quartz.core.ErrorLogger                       : Unable to notify TriggerListener(s) of Job that was executed: (error will be ignored). trigger= magnolia.UI Action triggered execution of [website:activate] by user [superuser]. (1) job= magnolia.UI Action triggered execution of [website:activate] by user [superuser]. (1)
      org.quartz.SchedulerException: TriggerListener 'UI Action triggered execution of [website:activate] by user [superuser]. (1)_trigger' threw exception: info.magnolia.module.scheduler.CommandJob$JobResult cannot be cast to java.lang.Integer [See nested exception: java.lang.ClassCastException: info.magnolia.module.scheduler.CommandJob$JobResult cannot be cast to java.lang.Integer]
              at org.quartz.core.QuartzScheduler.notifyTriggerListenersComplete(QuartzScheduler.java:1929)
              at org.quartz.core.JobRunShell.notifyTriggerListenersComplete(JobRunShell.java:398)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:267)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      Caused by: java.lang.ClassCastException: info.magnolia.module.scheduler.CommandJob$JobResult cannot be cast to java.lang.Integer
              at info.magnolia.ui.framework.action.AbstractCommandAction$CommandActionTriggerListener$1.doExec(AbstractCommandAction.java:395)
              at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
              at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
              at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
              at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:371)
              at info.magnolia.ui.framework.action.AbstractCommandAction$CommandActionTriggerListener.triggerComplete(AbstractCommandAction.java:389)
              at org.quartz.core.QuartzScheduler.notifyTriggerListenersComplete(QuartzScheduler.java:1927)
              ... 3 more
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              zarko.ivanoski Zarko Ivanoski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD