Getting current exception, not sure how to resolve it. Any ideas? Thanks a lot!
org.apache.camel.RuntimeCamelException: org.quartz.SchedulerException: Trigger's related Job's name cannot be null
<camel:endpoint id="pollPipilineStarUpScheduler"
uri="quartz://timedPipilineStarUp?stateful=true&cron=0+0+0+1/1+*+?+2099;job.name=startup;" />
<camel:route>
<camel:from ref="pollPipilineStarUpScheduler" />
<camel:bean ref="executionManager" method="startPipeline" />
</camel:route>
</camel:camelContext>
Your definition worked for Camel 2.12.2 (which version do you use?), however
0/5+*+*+*+*+?+*
, because I didn't want to wait so long for the first job execution... More information about Quartz's cron expression can be found here . ;
but by &
. In XML &
becomes &
. In your URI the &
was lost and it should therefore be quartz://timedPipilineStarUp?stateful=true&cron=0+0+0+1/1+*+?+2099&job.name=startup;
. However, I don't understand that your URI with ;
worked for me... job.name
option, you could have been using the following format quartz://groupName/timerName?cron=expression
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.