[Webinar] Learn how to a build a cloud-first strategyRegister Now


Does anyone have a thorough knowledge of Quartz scheduler?!

Posted on 2011-10-30
Medium Priority
Last Modified: 2012-05-12
I'm to set up a simple Quartz scheduling in my small application!  I have set up a Quartz Schedule but I'm getting the following Exception which I have difficulty understanding where it comes from!

org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'DEFAULT.Job1', because one already exists with this identification.

Question by:snajalm
  • 3
  • 2
LVL 86

Expert Comment

ID: 37053440
Sounds like you have duplicate jobs. Check this out


Author Comment

ID: 37053499

Thanks for the link but I'm not using crons.  I'm using simple triggers.  If I post the code would you be able to see where the problem is??!  Are you familiar with Quartz?
LVL 86

Expert Comment

ID: 37053835
I don't know if i could help i'm afraid. It does sound like a similar problem
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 47

Expert Comment

ID: 37055090

cehck this discussion - seesm to be releavnt to your case and has some recommendations and even code
which might remedy the issue:

Accepted Solution

snajalm earned 0 total points
ID: 37159348
Here's the solution to this issue!

if (!scheduler.checkExists(trigger.getJobKey()) && !scheduler.checkExists(job.getKey())) {
            scheduler.scheduleJob(job, trigger);
} else {
            scheduler.rescheduleJob(trigger.getKey(), trigger);

Open in new window


Author Closing Comment

ID: 37181652
I resolved this problem with adding these few lines of code at the end on my scheduler object!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month20 days, 10 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question