[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
How to deal with org.quartz.JobPersistenceException: Couldn't remove trigger:  XML
Forum Index -> Quartz
Author Message
Rossiell

neo

Joined: 11/16/2011 23:54:16
Messages: 7
Offline

Hi! I very count on your help.

I use quartz.1.6.6. How can I remove trigger from the DB if there are no jobClass in my jar?
Now I have Exception org.quartz.JobPersistenceException: Couldn't remove trigger: NameOfJob [See nested exception: java.lang.ClassNotFoundException: NameOfJob)

Now I use scheduler.unscheduleJob(triggerName, triggerGroupName); method.

Thanks in advance.

This problem is raised because at first we deployed service which contains new trigger, but than we stopped it and deployed previous version of service(during initialization we remove all triggers) which use the same DB and don't have such trigger.

light5

ophanim
[Avatar]
Joined: 01/14/2011 20:32:56
Messages: 517
Offline

Quartz assume you MUST have job class remained for those you scheduled with trigger. User must unschedule them ALL before shutdown and upgrading new jar!

In your case, I suggest you re-add an empty impl of your JobClass to your new jar, and then remove the triggers/jobs then you can reploy your new jar again without the old JobClass.

Or else you have to manually clean up the trigger and job detail in the database table by hand.

Zemian Deng
---------------
Looking for a web UI to manage Quartz?
Try http://code.google.com/p/myschedule
[WWW]
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team