Menu

#16 Task running is different than the one that is started

open
nobody
core (15)
5
2013-01-10
2007-04-23
Anonymous
No

Problem:
If 2 or more CPUs are in the server, it is possible that the task that is finally running is different than the one that was actually started.

Sollution:
Change (remove the word "static") the following line in the class org.jcrontab.CronTask (on the top of the file):

private static Runnable runnable = null;

to

private Runnable runnable = null;

Sender:
Alex Kuyper
(alex.kuyper@ordina.nl)

Discussion

MongoDB Logo MongoDB