简体   繁体   English

Quartz:调度程序已关闭

[英]Quartz: The Scheduler has been shutdown

I have developed a small Java application in which i use the Quartz.jar library. 我开发了一个小型Java应用程序,我使用Quartz.jar库。

But when executing my application and calling Quartz, I get the following error message in my console: 但是在执行我的应用程序并调用Quartz时,我在控制台中收到以下错误消息:

org.quartz.SchedulerException: The Scheduler has been shutdown

I have no idea where it comes from and what causes the error. 我不知道它来自何处以及导致错误的原因。

Has anyone an idea what the solution to this could be? 有谁知道这可能是什么解决方案?

If you don't edit the question to include the code for " executing my application and calling Quartz ", it's going to be really hard to tell exactly what could be happening. 如果没有编辑的问题,包括对“ 执行我的应用程序并调用石英 ”的代码,这将是真的很难说什么可能会发生。

However , it may have something to do with this little caveat about calling Scheduler.shutdown() : 但是 ,它可能与调用Scheduler.shutdown() 这个小警告有关:

Once you have shutdown a scheduler, it cannot be restarted 关闭调度程序后,无法重新启动

It might be that you are trying to start() a scheduler that was already shutdown, hence the error. 可能是您正在尝试start()已关闭的调度程序,因此错误。

But once again, can't really tell if you don't include the related code. 但是,再一次,无法确定您是否不包含相关代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM