You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am observing errors while writing a YAML integration containing a wiretap to a Kamelet, here is a minimal example: This example should log "Hello from Camel K yaml" twice.
- from:
uri: "timer:yaml"parameters:
period: "1000"steps:
- set-body:
constant: "Hello Camel K from yaml"
- wiretap:
uri: "kamelet:logger?message=${body}"
- to: "log:info"
Where the logger Kamelet is just a simple sink Kamelet that logs:
After kubectl apply -f and kamel run, I receive the following error: WARN [org.apa.cam.pro.WireTapProcessor] (Camel (camel-1) thread #3 - WireTap) Error occurred during processing Exchange[72E859E2207EED5-0000000000000005] wiretap to kamelet:logger?message=${body}. This exception will be ignored.: org.apache.camel.NoSuchEndpointException: No endpoint could be found for: kamelet://logger?message=Hello+Camel+K+from+yaml, please check your classpath contains the needed Camel component jar.
Changing the wiretap to a to statement works: ("Hello .. " is printed once every second)
- from:
uri: "timer:yaml"parameters:
period: "1000"steps:
- set-body:
constant: "Hello Camel K from yaml"
- to:
uri: "kamelet:logger?message=${body}"
Changing the kamelet:logger to the baked in log also works: ("Hello .. " is printed twice every second)
- from:
uri: "timer:yaml"parameters:
period: "1000"steps:
- set-body:
constant: "Hello Camel K from yaml"
- wiretap:
uri: "log:info"
- to: "log:info"
Another interesing thing: when I remove the final to: log:info statement, it doesn't work either:
- from:
uri: "timer:yaml"parameters:
period: "1000"steps:
- set-body:
constant: "Hello Camel K from yaml"
- wiretap:
uri: "log:info"
The /etc/camel/conf/application.properties looks like:
I am not sure if miss something, or it's a bug. After a discussion on Zulip chat with @lburgazzoli, he mentions there might be an issue with load templates. Similar problems arise with components like enhance, and I suspect it might be the same issue.
Mind you: I don't have a lot of Camel (K) experience, so I hope I formulated everything well.
The text was updated successfully, but these errors were encountered:
I am observing errors while writing a YAML integration containing a wiretap to a Kamelet, here is a minimal example: This example should log "Hello from Camel K yaml" twice.
Where the logger Kamelet is just a simple sink Kamelet that logs:
After
kubectl apply -f
andkamel run
, I receive the following error:WARN [org.apa.cam.pro.WireTapProcessor] (Camel (camel-1) thread #3 - WireTap) Error occurred during processing Exchange[72E859E2207EED5-0000000000000005] wiretap to kamelet:logger?message=${body}. This exception will be ignored.: org.apache.camel.NoSuchEndpointException: No endpoint could be found for: kamelet://logger?message=Hello+Camel+K+from+yaml, please check your classpath contains the needed Camel component jar.
Changing the
wiretap
to ato
statement works: ("Hello .. " is printed once every second)Changing the
kamelet:logger
to the baked inlog
also works: ("Hello .. " is printed twice every second)Another interesing thing: when I remove the final
to: log:info
statement, it doesn't work either:The
/etc/camel/conf/application.properties
looks like:When I deploy a more complex integration yaml containing 2 Kamelets, it looks like:
I am not sure if miss something, or it's a bug. After a discussion on Zulip chat with @lburgazzoli, he mentions there might be an issue with load templates. Similar problems arise with components like
enhance
, and I suspect it might be the same issue.Mind you: I don't have a lot of Camel (K) experience, so I hope I formulated everything well.
The text was updated successfully, but these errors were encountered: