in src/main/groovy/grails/plugins/quartz/GrailsJobFactory.java [104:129]
public void execute(final JobExecutionContext context) throws JobExecutionException {
try {
if (passExecutionContext) {
executeMethod.invoke(job, context);
} else {
executeMethod.invoke(job);
}
} catch (InvocationTargetException ite) {
Throwable targetException = ite.getTargetException();
if (targetException instanceof JobExecutionException) {
throw (JobExecutionException) targetException;
} else {
throw new JobExecutionException(targetException);
}
} catch (IllegalAccessException iae) {
JobExecutionException criticalError = new JobExecutionException(
MessageFormat.format(
"Cannot invoke {0}#{1}() method",
job.getClass().getName(), executeMethod.getName()
),
iae
);
criticalError.setUnscheduleAllTriggers(true);
throw criticalError;
}
}