[
https://issues.apache.org/jira/browse/CAMEL-19914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775151#comment-17775151
]
Claus Ibsen commented on CAMEL-19914:
-------------------------------------
I am making Camel report this better, so you will see this in the future
Caused by: java.lang.IllegalArgumentException: The misfire instruction code is
invalid for this type of trigger.
at
org.quartz.impl.triggers.AbstractTrigger.setMisfireInstruction(AbstractTrigger.java:677)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at
org.apache.camel.impl.engine.IntrospectionSupport.setProperty(IntrospectionSupport.java:635)
at
org.apache.camel.impl.engine.DefaultBeanIntrospection.setProperty(DefaultBeanIntrospection.java:206)
at
org.apache.camel.support.PropertyBindingSupport.doSetSimplePropertyViaReflection(PropertyBindingSupport.java:929)
at
org.apache.camel.support.PropertyBindingSupport.setSimplePropertyViaReflection(PropertyBindingSupport.java:817)
... 26 more
> Start and stop a quartz route messes up its schedule
> ----------------------------------------------------
>
> Key: CAMEL-19914
> URL: https://issues.apache.org/jira/browse/CAMEL-19914
> Project: Camel
> Issue Type: Bug
> Components: camel-quartz
> Affects Versions: 3.20.6
> Reporter: John Yin
> Priority: Major
>
> When a stopped quartz route is resumed, if it has missed a previously
> scheduled firing because of the stop, it would immediately fire regardless
> its defined schedule. Here is an example:
> from("quartz://test?cron=0+0/3+*+?+*+*").routeId("ROUTE_test").autoStartup(true).log("in
> test")
>
> from("timer://start_stop_test?repeatCount=1").autoStartup(true)
> .process({
> // stop route "ROUTE_test" using routeController API
> // wait for more than 3 minutes so that the stopped ROUTE_test will
> miss a firing
> // resume route "ROUTE_test" using routeController API. You will see
> ROUTE_test immediately fire regardless whether it is the scheduled time or
> not.
> })
--
This message was sent by Atlassian Jira
(v8.20.10#820010)