[MGNLSCH-61] Notification for long running job do not work with scheduler 2.2.2 version Created: 25/Sep/15  Updated: 19/May/22  Resolved: 19/May/22

Status: Closed
Project: Scheduler
Component/s: None
Affects Version/s: 2.2.2
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Zarko Ivanoski Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 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


 Comments   
Comment by Roman Kovařík [ 19/May/22 ]

Hello,

This ticket is now marked as closed due to one of the following reasons:

  • A long period of inactivity
  • Uses an old or Beta version of an application, module, or framework that we no longer support
  • The issue is no longer reproducible or has been fixed in later versions

If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you.

Thank you,
The Magnolia Team

Generated at Mon Feb 12 10:45:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.