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'm trying to bind a current knative broker along with an integration.
The following integration :
from('knative:event/hire')
.to('log:DEBUG')
Fails with the following output :
$ kamel run knative/listener.groovy --dev
// building logs removed for brevity
[1] 2020-12-28 18:39:10,881 INFO [org.apa.cam.k.Runtime] (main) Apache Camel K Runtime 1.5.0
[1] 2020-12-28 18:39:10,904 INFO [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
[1] 2020-12-28 18:39:10,976 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='listener', language='groovy', location='file:/etc/camel/sources/i-source-000/listener.groovy', }
[1] 2020-12-28 18:39:12,952 INFO [org.apa.cam.com.kna.KnativeComponent] (main) found knative transport: org.apache.camel.component.knative.http.KnativeHttpTransport@256bb5be for protocol: http
[1] 2020-12-28 18:39:12,958 INFO [org.apa.cam.mai.MainLifecycleStrategy] (main) CamelContext: camel-1 has been shutdown, triggering shutdown of the JVM.
[1] 2020-12-28 18:39:12,959 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[knative:event/hire] -> [To[log:DEBUG]]] because of Failed to resolve endpoint: knative://event/hire due to: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:118)
[1] at org.apache.camel.quarkus.core.FastCamelContext.startRouteDefinitions(FastCamelContext.java:830)
[1] at org.apache.camel.quarkus.core.FastCamelContext.startRouteDefinitions(FastCamelContext.java:582)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2680)
[1] at org.apache.camel.quarkus.core.FastCamelContext.doInit(FastCamelContext.java:468)
[1] at org.apache.camel.support.service.BaseService.init(BaseService.java:83)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2452)
[1] at org.apache.camel.support.service.BaseService.start(BaseService.java:111)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2469)
[1] at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:75)
[1] at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
[1] at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:120)
[1] at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
[1] at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
[1] at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy_0(CamelBootstrapProcessor$boot-173480958.zig:101)
[1] at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy(CamelBootstrapProcessor$boot-173480958.zig:40)
[1] at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:664)
[1] at io.quarkus.runtime.Application.start(Application.java:90)
[1] at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:91)
[1] at io.quarkus.runtime.Quarkus.run(Quarkus.java:61)
[1] at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
[1] at io.quarkus.runtime.Quarkus.run(Quarkus.java:106)
[1] at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
[1] Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: knative://event/hire due to: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:888)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:777)
[1] at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:58)
[1] at org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:177)
[1] at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:250)
[1] at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:112)
[1] ... 22 more
[1] Caused by: java.lang.IllegalStateException: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.component.knative.KnativeComponent.getKnativeConfiguration(KnativeComponent.java:277)
[1] at org.apache.camel.component.knative.KnativeComponent.createEndpoint(KnativeComponent.java:223)
[1] at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:240)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:855)
[1] ... 27 more
[1]
[1] 2020-12-28 18:39:12,960 ERROR [io.qua.application] (main) Failed to start application (with profile prod): java.lang.RuntimeException: java.lang.RuntimeException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[knative:event/hire] -> [To[log:DEBUG]]] because of Failed to resolve endpoint: knative://event/hire due to: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:47)
[1] at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy_0(CamelBootstrapProcessor$boot-173480958.zig:101)
[1] at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy(CamelBootstrapProcessor$boot-173480958.zig:40)
[1] at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:664)
[1] at io.quarkus.runtime.Application.start(Application.java:90)
[1] at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:91)
[1] at io.quarkus.runtime.Quarkus.run(Quarkus.java:61)
[1] at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
[1] at io.quarkus.runtime.Quarkus.run(Quarkus.java:106)
[1] at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
[1] Caused by: java.lang.RuntimeException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[knative:event/hire] -> [To[log:DEBUG]]] because of Failed to resolve endpoint: knative://event/hire due to: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:65)
[1] at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
[1] ... 9 more
[1] Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[knative:event/hire] -> [To[log:DEBUG]]] because of Failed to resolve endpoint: knative://event/hire due to: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:118)
[1] at org.apache.camel.quarkus.core.FastCamelContext.startRouteDefinitions(FastCamelContext.java:830)
[1] at org.apache.camel.quarkus.core.FastCamelContext.startRouteDefinitions(FastCamelContext.java:582)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2680)
[1] at org.apache.camel.quarkus.core.FastCamelContext.doInit(FastCamelContext.java:468)
[1] at org.apache.camel.support.service.BaseService.init(BaseService.java:83)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2452)
[1] at org.apache.camel.support.service.BaseService.start(BaseService.java:111)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2469)
[1] at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:75)
[1] at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
[1] at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:120)
[1] at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
[1] ... 10 more
[1] Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: knative://event/hire due to: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:888)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:777)
[1] at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:58)
[1] at org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:177)
[1] at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:250)
[1] at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:112)
[1] ... 22 more
[1] Caused by: java.lang.IllegalStateException: Cannot load Knative configuration from file or env variable
[1] at org.apache.camel.component.knative.KnativeComponent.getKnativeConfiguration(KnativeComponent.java:277)
[1] at org.apache.camel.component.knative.KnativeComponent.createEndpoint(KnativeComponent.java:223)
[1] at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:240)
[1] at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:855)
[1] ... 27 more
[1]
Condition "Ready" is "False" for Integration listener
The knative eventing config is basically from the knative getting started guide :
Hi,
Camel K version :
I'm trying to bind a current knative broker along with an integration.
The following integration :
Fails with the following output :
The knative eventing config is basically from the knative getting started guide :
Informations about the camel k operator :
The text was updated successfully, but these errors were encountered: