jamesnetherton opened a new issue #1663:
URL: https://github.com/apache/camel-quarkus/issues/1663


   Components that leverage `ScheduledPollConsumer` allow you to specify the 
scheduler to use. When using quartz, there are failures at runtime in native 
mode:
   
   ```
   2020-09-01 09:48:00,000 ERROR [org.qua.cor.ErrorLogger] 
(DefaultQuartzScheduler-camel-quarkus-xml_QuartzSchedulerThread) An error 
occured instantiating job to be executed. job= 
'DEFAULT.6da64b5bd2ee-ba5b34dc-56b8-4169-bf94-a1bae35a1df5': 
org.quartz.SchedulerException: Problem instantiating class 
'org.apache.camel.pollconsumer.quartz.QuartzScheduledPollConsumerJob' [See 
nested exception: java.lang.InstantiationException: Type 
`org.apache.camel.pollconsumer.quartz.QuartzScheduledPollConsumerJob` can not 
be instantiated reflectively as it does not have a no-parameter constructor or 
the no-parameter constructor has not been added explicitly to the native image.]
        at org.quartz.simpl.SimpleJobFactory.newJob(SimpleJobFactory.java:58)
        at 
org.quartz.simpl.PropertySettingJobFactory.newJob(PropertySettingJobFactory.java:69)
        at org.quartz.core.JobRunShell.initialize(JobRunShell.java:127)
        at 
org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:392)
        at 
com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517)
        at 
com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)
   Caused by: java.lang.InstantiationException: Type 
`org.apache.camel.pollconsumer.quartz.QuartzScheduledPollConsumerJob` can not 
be instantiated reflectively as it does not have a no-parameter constructor or 
the no-parameter constructor has not been added explicitly to the native image.
        at java.lang.Class.newInstance(DynamicHub.java:830)
        at org.quartz.simpl.SimpleJobFactory.newJob(SimpleJobFactory.java:56)
        ... 5 more
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to