Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
ADe_Pinto1673864968
Contributor II
Contributor II

cFile component and scheduler error on Talend Administratio Center

Dear support,
I set a cFile component with the scheduler :
 
from("file://C:/temp/testscheduler" + "?noop=false" + "&autoCreate=false" + "&flatten=false" + "&bufferSize=128"
+ "&scheduler=quartz" + "&scheduler.cron=*+*+1-23+?+*+*" + "&antInclude=*.xml" + "&move=done"
+ "&moveFailed=error")
 
and when I launch it from the local Talend Studio it works properly, but when I deploy it into the Talend Administrator Center I got the error :
 
2025-01-20 10:19:31.068 WARN [Blueprint Event Dispatcher: 1] Changing Camel state for bundle 1812 to Failure
2025-01-20 10:19:31.069 ERROR [Blueprint Event Dispatcher: 1] Error occurred during starting CamelContext: mdw.testfilewithquartz_0_4.TestFileWithQuartz
org.apache.camel.FailedToCreateRouteException: Failed to create route TestFileWithQuartz_cFile_3: Route(TestFileWithQuartz_cFile_3)[From[file://C:/temp/testsc... because of Failed to resolve endpoint: file://C:/temp/testscheduler?antInclude=*.xml&autoCreate=false&bufferSize=128&flatten=false&move=done&moveFailed=error&noop=false&scheduler=quartz&scheduler.cron=*+*+1-23+%3F+*+* due to: Cannot load org.apache.camel.pollconsumer.quartz.QuartzScheduledPollConsumerScheduler from classpath. Make sure camel-quartz.jar is on the classpath.
 
I did another test with another component that use the same library in the same route and it works.
 
In details I configured a cMessagingEndpoint with :
 
URI : "quartz://myGroup/myTimerName?cron=0+0+1+1+1+?+2099"
Advanced settings --> Camel component : "quartz"
 
and both locally and on the TAC start without error.
 
Maybe in the cFile component I should specify the quartz library, but how? Or is there something else to configure?
 
Thanks in advance,
Andrea De Pinto
Labels (2)
1 Reply
Dave_Simo
Creator II
Creator II

Hello,

Try to load the .jar in cConfig as in the link below.

https://community.qlik.com/t5/Official-Support-Articles/Talend-Studio-java-lang-NoClassDefFoundError...

 

Best Regards,