我的程序有错误:
[DefaultQuartzScheduler_Worker-1] INFO org.quartz.core.JobRunShell - Job DEFAULT_GROUP.HelloJob threw a JobExecutionException:
org.quartz.JobExecutionException: Testing Exception
at CronTriggertes.HelloJob.execute(HelloJob.java:15)
at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:548)
我不知道如何解决它。
package CronTriggertes;
package CronTriggertes;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import java.util.Date;
public class HelloJob implements Job {
public void execute(JobExecutionContext arg0) throws JobExecutionException{
System.out.println("Hello World Quartz Scheduler with CronTrigger: " + new Date()); throw new JobExecutionException("Testing Exception");
}
}