Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot switch between cron and normal deployment in dev mode #1394

Closed
nicolaferraro opened this issue Apr 6, 2020 · 0 comments · Fixed by #1398
Closed

Cannot switch between cron and normal deployment in dev mode #1394

nicolaferraro opened this issue Apr 6, 2020 · 0 comments · Fixed by #1398
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@nicolaferraro
Copy link
Member

Have an integration that runs from timer:

from("timer:tick?period=1000").log("Hello")

I run it in dev mode:

kamel run it.groovy --dev

After it runs, I change the code to run every minute:

from("timer:tick?period=60000").log("Hello")

The integration is turned into a cronjob correctly, but it fails when it runs:

[3] Caused by: java.lang.IllegalArgumentException: Unable to find source loader interceptor for: cron
[3]     at org.apache.camel.k.support.RuntimeSupport.lambda$loadInterceptors$11(RuntimeSupport.java:232)
[3]     at java.base/java.util.Optional.orElseThrow(Optional.java:408)
[3]     at org.apache.camel.k.support.RuntimeSupport.loadInterceptors(RuntimeSupport.java:232)
[3]     ... 23 more

The problem is that the org.apache.camel.k:camel-k-runtime-cron library is missing.

When running the integration normally (not from dev mode, directly as CronJob), everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants