You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/09/01 08:54:16 UTC

[GitHub] [camel-quarkus] jamesnetherton opened a new issue #1663: Unable to use quartz as scheduler for ScheduledPollConsumer in native mode

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:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton closed issue #1663: Unable to use quartz as scheduler for ScheduledPollConsumer in native mode

Posted by GitBox <gi...@apache.org>.
jamesnetherton closed issue #1663:
URL: https://github.com/apache/camel-quarkus/issues/1663


   


----------------------------------------------------------------
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:
users@infra.apache.org