yinzhiqiang007 opened a new issue, #1477:
URL: https://github.com/apache/camel-karavan/issues/1477
### Describe the bug
2025-01-20T11:22:16.281564629+08:00 Exception in thread "main"
org.apache.camel.FailedToCreateRouteException: Failed to create route
route-7182: Route(route-7182)[From[cron:cron1?schedule=0/1 * * * * ?] ->...
because of Failed to resolve endpoint: cron://cron1?schedule=0%2F1+*+*+*+*+%3F
due to: Cannot find any CamelCronService: please add a valid implementation,
such as 'camel-quartz', in order to use the 'camel-cron' component
2025-01-20T11:22:16.281623274+08:00 at
org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:92)
2025-01-20T11:22:16.281631263+08:00 at
org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
2025-01-20T11:22:16.281636162+08:00 at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:726)
2025-01-20T11:22:16.281640699+08:00 at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:592)
2025-01-20T11:22:16.281646067+08:00 at
org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2429)
2025-01-20T11:22:16.281660189+08:00 at
org.apache.camel.support.service.BaseService.init(BaseService.java:85)
2025-01-20T11:22:16.281665345+08:00 at
org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2064)
2025-01-20T11:22:16.281677196+08:00 at
org.apache.camel.support.service.BaseService.start(BaseService.java:115)
2025-01-20T11:22:16.281682096+08:00 at
org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2083)
2025-01-20T11:22:16.281686640+08:00 at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:211)
2025-01-20T11:22:16.281692159+08:00 at
org.apache.camel.main.Main.doStart(Main.java:142)
2025-01-20T11:22:16.281712908+08:00 at
org.apache.camel.support.service.BaseService.start(BaseService.java:123)
2025-01-20T11:22:16.281718209+08:00 at
org.apache.camel.main.MainSupport.run(MainSupport.java:88)
2025-01-20T11:22:16.281731059+08:00 at
org.apache.camel.main.MainCommandLineSupport.run(MainCommandLineSupport.java:237)
2025-01-20T11:22:16.281743344+08:00 at
org.camel.karavan.demo.demotimer.CamelApplication.main(CamelApplication.java:9)
2025-01-20T11:22:16.282010782+08:00 Caused by:
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
cron://cron1?schedule=0%2F1+*+*+*+*+%3F due to: Cannot find any
CamelCronService: please add a valid implementation, such as 'camel-quartz', in
order to use the 'camel-cron' component
2025-01-20T11:22:16.282027573+08:00 at
org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:839)
2025-01-20T11:22:16.282033203+08:00 at
org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:739)
2025-01-20T11:22:16.282037673+08:00 at
org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:66)
2025-01-20T11:22:16.282042199+08:00 at
org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:199)
2025-01-20T11:22:16.282066255+08:00 at
org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:106)
2025-01-20T11:22:16.282071620+08:00 at
org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:86)
2025-01-20T11:22:16.282076989+08:00 ... 14 more
2025-01-20T11:22:16.282092458+08:00 Caused by:
org.apache.camel.RuntimeCamelException: Cannot find any CamelCronService:
please add a valid implementation, such as 'camel-quartz', in order to use the
'camel-cron' component
2025-01-20T11:22:16.282097774+08:00 at
org.apache.camel.component.cron.CronComponent.initCamelCronService(CronComponent.java:93)
2025-01-20T11:22:16.282102746+08:00 at
org.apache.camel.component.cron.CronComponent.doInit(CronComponent.java:80)
2025-01-20T11:22:16.282114674+08:00 at
org.apache.camel.support.service.BaseService.init(BaseService.java:85)
2025-01-20T11:22:16.282119449+08:00 at
org.apache.camel.support.service.ServiceHelper.initService(ServiceHelper.java:84)
2025-01-20T11:22:16.282131505+08:00 at
org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:798)
2025-01-20T11:22:16.282136833+08:00 ... 19 more
### Steps to reproduce the behavior
1.add cron yaml
from:
id: from-5264
uri: cron
parameters:
schedule: 0/1 * * * * ?
name: cron1
2. build cron project
3. k8s pod start error
### Variant
Web Application
### Container Management (if applicable)
None
### Operating System (if applicable)
None
### Version
4.8.0
### Relevant log output
```shell
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]