-3

我的程序有错误:

[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");
    }
}
4

2 回答 2

0

您可以在此处找到此异常的描述:

http://quartz-scheduler.org/api/2.0.0/org/quartz/JobExecutionException.html

于 2013-03-13T14:04:35.063 回答
0

从代码中去掉throw new JobExecutionException("Testing Exception");...直接相关Job DEFAULT_GROUP.HelloJob threw a JobExecutionException

于 2013-03-13T15:38:01.060 回答