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

Unable to run timed-greeter with Kamelet #298

Open
raymondsze opened this issue May 18, 2022 · 0 comments
Open

Unable to run timed-greeter with Kamelet #298

raymondsze opened this issue May 18, 2022 · 0 comments

Comments

@raymondsze
Copy link

raymondsze commented May 18, 2022

Describe the bug
I followed the instruction here https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial/camelk/camel-k-eventing.html#camel-k-es-sink, using the master branch of this repository.
The ran pod timed-greeter-binding-cfcfb46d8-scrqn got this error

exec java -cp ./resources:/etc/camel/application.properties:/etc/camel/conf.d/_resources:/etc/camel/conf.d/user.properties:/etc/camel/resources:/etc/camel/sources/camel-k-embedded-flow.yaml:/etc/camel │
│ /sources/timed-greeter.yaml:dependencies/app/camel-k-integration-1.9.1.jar:dependencies/lib/boot/io.quarkus.quarkus-bootstrap-runner-2.8.0.Final.jar:dependencies/lib/boot/io.quarkus.quarkus-developmen │
│ t-mode-spi-2.8.0.Final.jar:dependencies/lib/boot/io.smallrye.common.smallrye-common-io-1.10.0.jar:dependencies/lib/boot/org.glassfish.jakarta.json-1.1.6.jar:dependencies/lib/boot/org.graalvm.sdk.graal │
│ -sdk-22.0.0.2.jar:dependencies/lib/boot/org.jboss.logging.jboss-logging-3.4.3.Final.jar:dependencies/lib/boot/org.jboss.logmanager.jboss-logmanager-embedded-1.0.9.jar:dependencies/lib/boot/org.wildfly │
│ .common.wildfly-common-1.5.4.Final-format-001.jar:dependencies/lib/main/com.fasterxml.jackson.core.jackson-annotations-2.13.2.jar:dependencies/lib/main/com.fasterxml.jackson.core.jackson-core-2.13.2.j │
│ ar:dependencies/lib/main/com.fasterxml.jackson.core.jackson-databind-2.13.2.2.jar:dependencies/lib/main/com.fasterxml.jackson.datatype.jackson-datatype-jdk8-2.13.2.jar:dependencies/lib/main/com.sun.ac │
│ tivation.jakarta.activation-1.2.1.jar:dependencies/lib/main/io.netty.netty-buffer-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-codec-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-code │
│ c-dns-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-codec-haproxy-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-codec-http-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-codec-h │
│ ttp2-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-codec-socks-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-common-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-handler-4.1.74 │
│ .Final.jar:dependencies/lib/main/io.netty.netty-handler-proxy-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-resolver-4.1.74.Final.jar:dependencies/lib/main/io.netty.netty-resolver-dns-4.1.74.F │
│ inal.jar:dependencies/lib/main/io.netty.netty-tcnative-classes-2.0.48.Final.jar:dependencies/lib/main/io.netty.netty-transport-4.1.74.Final.jar:dependencies/lib/main/io.quarkus.arc.arc-2.8.0.Final.jar │
│ :dependencies/lib/main/io.quarkus.quarkus-arc-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-core-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-fs-util-0.0.9.jar:dependencies/lib/ │
│ main/io.quarkus.quarkus-jsonp-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-logging-json-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-mutiny-2.8.0.Final.jar:dependencies/lib/mai │
│ n/io.quarkus.quarkus-netty-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-security-runtime-spi-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-smallrye-context-propagation-2.8.0.Fin │
│ al.jar:dependencies/lib/main/io.quarkus.quarkus-vertx-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-vertx-http-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.quarkus-vertx-http-dev-consol │
│ e-runtime-spi-2.8.0.Final.jar:dependencies/lib/main/io.quarkus.security.quarkus-security-1.1.4.Final.jar:dependencies/lib/main/io.smallrye.common.smallrye-common-annotation-1.10.0.jar:dependencies/lib │
│ /main/io.smallrye.common.smallrye-common-classloader-1.10.0.jar:dependencies/lib/main/io.smallrye.common.smallrye-common-constraint-1.10.0.jar:dependencies/lib/main/io.smallrye.common.smallrye-common- │
│ expression-1.10.0.jar:dependencies/lib/main/io.smallrye.common.smallrye-common-function-1.10.0.jar:dependencies/lib/main/io.smallrye.common.smallrye-common-vertx-context-1.10.0.jar:dependencies/lib/ma │
│ in/io.smallrye.config.smallrye-config-2.9.2.jar:dependencies/lib/main/io.smallrye.config.smallrye-config-common-2.9.2.jar:dependencies/lib/main/io.smallrye.config.smallrye-config-core-2.9.2.jar:depend │
│ encies/lib/main/io.smallrye.reactive.mutiny-1.4.0.jar:dependencies/lib/main/io.smallrye.reactive.mutiny-smallrye-context-propagation-1.4.0.jar:dependencies/lib/main/io.smallrye.reactive.smallrye-mutin │
│ y-vertx-auth-common-2.19.0.jar:dependencies/lib/main/io.smallrye.reactive.smallrye-mutiny-vertx-bridge-common-2.19.0.jar:dependencies/lib/main/io.smallrye.reactive.smallrye-mutiny-vertx-core-2.19.0.ja │
│ r:dependencies/lib/main/io.smallrye.reactive.smallrye-mutiny-vertx-runtime-2.19.0.jar:dependencies/lib/main/io.smallrye.reactive.smallrye-mutiny-vertx-web-2.19.0.jar:dependencies/lib/main/io.smallrye. │
│ reactive.smallrye-mutiny-vertx-web-common-2.19.0.jar:dependencies/lib/main/io.smallrye.reactive.vertx-mutiny-generator-2.19.0.jar:dependencies/lib/main/io.smallrye.smallrye-context-propagation-1.2.2.j │
│ ar:dependencies/lib/main/io.smallrye.smallrye-context-propagation-api-1.2.2.jar:dependencies/lib/main/io.smallrye.smallrye-context-propagation-storage-1.2.2.jar:dependencies/lib/main/io.smallrye.small │
│ rye-fault-tolerance-vertx-5.3.1.jar:dependencies/lib/main/io.vertx.vertx-auth-common-4.2.5.jar:dependencies/lib/main/io.vertx.vertx-bridge-common-4.2.5.jar:dependencies/lib/main/io.vertx.vertx-codegen │
│ -4.2.5.jar:dependencies/lib/main/io.vertx.vertx-core-4.2.5.jar:dependencies/lib/main/io.vertx.vertx-web-4.2.5.jar:dependencies/lib/main/io.vertx.vertx-web-client-4.2.5.jar:dependencies/lib/main/io.ver │
│ tx.vertx-web-common-4.2.5.jar:dependencies/lib/main/jakarta.annotation.jakarta.annotation-api-1.3.5.jar:dependencies/lib/main/jakarta.el.jakarta.el-api-3.0.3.jar:dependencies/lib/main/jakarta.enterpri │
│ se.jakarta.enterprise.cdi-api-2.0.2.jar:dependencies/lib/main/jakarta.inject.jakarta.inject-api-1.0.jar:dependencies/lib/main/jakarta.interceptor.jakarta.interceptor-api-1.2.5.jar:dependencies/lib/mai │
│ n/jakarta.transaction.jakarta.transaction-api-1.3.3.jar:dependencies/lib/main/org.apache.camel.camel-api-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-attachments-3.16.0.jar:dependencies/lib │
│ /main/org.apache.camel.camel-base-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-base-engine-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-bean-3.16.0.jar:dependencies/lib/main/org. │
│ apache.camel.camel-cloudevents-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-componentdsl-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-core-catalog-3.16.0.jar:dependencies/lib/mai │
│ n/org.apache.camel.camel-core-engine-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-core-languages-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-core-model-3.16.0.jar:dependencies/l │
│ ib/main/org.apache.camel.camel-core-processor-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-core-reifier-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-dsl-support-3.16.0.jar:depend │
│ encies/lib/main/org.apache.camel.camel-endpointdsl-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-kamelet-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-knative-3.16.0.jar:dependenci │
│ es/lib/main/org.apache.camel.camel-knative-api-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-knative-http-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-main-3.16.0.jar:dependencies │
│ /lib/main/org.apache.camel.camel-management-api-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-microprofile-config-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-platform-http-3.16.0 │
│ .jar:dependencies/lib/main/org.apache.camel.camel-platform-http-vertx-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-support-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-timer-3.16 │
│ .0.jar:dependencies/lib/main/org.apache.camel.camel-tooling-model-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-util-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-util-json-3.16.0. │
│ jar:dependencies/lib/main/org.apache.camel.camel-vertx-common-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-yaml-dsl-3.16.0.jar:dependencies/lib/main/org.apache.camel.camel-yaml-dsl-common-3 │
│ .16.0.jar:dependencies/lib/main/org.apache.camel.camel-yaml-dsl-deserializers-3.16.0.jar:dependencies/lib/main/org.apache.camel.k.camel-k-cloudevents-1.13.0.jar:dependencies/lib/main/org.apache.camel. │
│ k.camel-k-core-1.13.0.jar:dependencies/lib/main/org.apache.camel.k.camel-k-core-api-1.13.0.jar:dependencies/lib/main/org.apache.camel.k.camel-k-core-support-1.13.0.jar:dependencies/lib/main/org.apache │
│ .camel.k.camel-k-knative-1.13.0.jar:dependencies/lib/main/org.apache.camel.k.camel-k-knative-impl-1.13.0.jar:dependencies/lib/main/org.apache.camel.k.camel-k-knative-producer-1.13.0.jar:dependencies/l │
│ ib/main/org.apache.camel.k.camel-k-runtime-1.13.0.jar:dependencies/lib/main/org.apache.camel.quarkus.camel-quarkus-attachments-2.8.0.jar:dependencies/lib/main/org.apache.camel.quarkus.camel-quarkus-be │
│ an-2.8.0.jar:dependencies/lib/main/org.apache.camel.quarkus.camel-quarkus-core-2.8.0.jar:dependencies/lib/main/org.apache.camel.quarkus.camel-quarkus-kamelet-2.8.0.jar:dependencies/lib/main/org.apache │
│ .camel.quarkus.camel-quarkus-platform-http-2.8.0.jar:dependencies/lib/main/org.apache.camel.quarkus.camel-quarkus-timer-2.8.0.jar:dependencies/lib/main/org.apache.camel.quarkus.camel-quarkus-yaml-dsl- │
│ 2.8.0.jar:dependencies/lib/main/org.eclipse.microprofile.config.microprofile-config-api-2.0.1.jar:dependencies/lib/main/org.eclipse.microprofile.context-propagation.microprofile-context-propagation-ap │
│ i-1.2.jar:dependencies/lib/main/org.jboss.logging.jboss-logging-annotations-2.2.1.Final.jar:dependencies/lib/main/org.jboss.slf4j.slf4j-jboss-logmanager-1.1.0.Final.jar:dependencies/lib/main/org.jboss │
 .spec.javax.xml.bind.jboss-jaxb-api_2.3_spec-2.0.0.Final.jar:dependencies/lib/main/org.jboss.threads.jboss-threads-3.4.2.Final.jar:dependencies/lib/main/org.reactivestreams.reactive-streams-1.0.3.jar: │
│ dependencies/lib/main/org.slf4j.slf4j-api-1.7.36.jar:dependencies/lib/main/org.snakeyaml.snakeyaml-engine-2.3.jar:dependencies/quarkus-app-dependencies.txt:dependencies/quarkus-run.jar:dependencies/qu │
│ arkus/generated-bytecode.jar:dependencies/quarkus/quarkus-application.dat:dependencies/quarkus/transformed-bytecode.jar io.quarkus.bootstrap.runner.QuarkusEntryPoint                                    │
│ 2022-05-18 09:37:27,049 INFO  [org.apa.cam.k.Runtime[] (main) Apache Camel K Runtime 1.13.0                                                                                                              │
│ 2022-05-18 09:37:27,086 INFO  [org.apa.cam.qua.cor.CamelBootstrapRecorder[] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime                                                     │
│ 2022-05-18 09:37:27,090 INFO  [org.apa.cam.mai.MainSupport[] (main) Apache Camel (Main) 3.16.0 is starting                                                                                               │
│ 2022-05-18 09:37:27,136 INFO  [org.apa.cam.k.lis.SourcesConfigurer[] (main) Loading routes from: SourceDefinition{name='camel-k-embedded-flow', language='yaml', type='source', location='file:/etc/came │
│ l/sources/camel-k-embedded-flow.yaml', }                                                                                                                                                                 │
│ 2022-05-18 09:37:27,197 INFO  [org.apa.cam.k.lis.SourcesConfigurer[] (main) Loading routes from: SourceDefinition{name='timed-greeter', language='yaml', type='source', location='file:/etc/camel/source │
│ s/timed-greeter.yaml', }                                                                                                                                                                                 │
│ 2022-05-18 09:37:27,272 ERROR [org.apa.cam.qua.mai.CamelMainRuntime[] (main) Failed to start application: org.apache.camel.dsl.yaml.common.exception.UnsupportedFieldException: Unsupported field (steps │
│ ) for node: <org.snakeyaml.engine.v2.nodes.MappingNode (tag=tag:yaml.org,2002:map, values={ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=from)>; value=1831705084 }{  │
│ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=id)>; value=<NodeTuple keyNode=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=id)>; valueNo │
│ de=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=binding)>> }{ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=steps)>; value=665988980 }) │
│ >                                                                                                                                                                                                        │
│     at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:96)                                                                            │
│     at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:33)                                                                            │
│     at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct(YamlDeserializerBase.java:60)                                                                                                     │
│     at org.apache.camel.dsl.yaml.common.YamlDeserializationContext$2.construct(YamlDeserializationContext.java:231)                                                                                      │
│     at org.apache.camel.dsl.yaml.YamlRoutesBuilderLoader$1.configuration(YamlRoutesBuilderLoader.java:226)                                                                                               │
│     at org.apache.camel.builder.RouteConfigurationBuilder.addRouteConfigurationsToCamelContext(RouteConfigurationBuilder.java:77)                                                                        │
│     at org.apache.camel.impl.engine.AbstractCamelContext.addRoutesConfigurations(AbstractCamelContext.java:1184)                                                                                         │
│     at org.apache.camel.main.RoutesConfigurer.addDiscoveredRoutes(RoutesConfigurer.java:232)                                                                                                             │
│     at org.apache.camel.main.RoutesConfigurer.configureRoutes(RoutesConfigurer.java:213)                                                                                                                 │
│     at org.apache.camel.quarkus.main.CamelMain.configureRoutes(CamelMain.java:70)                                                                                                                        │
│     at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:590)                                                                                                           │
│     at org.apache.camel.quarkus.main.CamelMain.initCamelContext(CamelMain.java:116)                                                                                                                      │
│     at org.apache.camel.quarkus.main.CamelMain.doInit(CamelMain.java:86)                                                                                                                                 │
│     at org.apache.camel.support.service.BaseService.init(BaseService.java:83)                                                                                                                            │
│     at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:137)                                                                                                                           │
│     at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)                                                                                                                    │
│     at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)                                                                                                        │
│     at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy_0(Unknown Source)                                                                                                        │
│     at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy(Unknown Source)                                                                                                          │
│     at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)                                                                                                                                         │
│     at io.quarkus.runtime.Application.start(Application.java:101)                                                                                                                                        │
│     at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:103)                                                                                                          │
│     at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)                                                                                                                                                   │
│     at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)                                                                                                                                                   │
│     at io.quarkus.runtime.Quarkus.run(Quarkus.java:120)                                                                                                                                                  │
│     at io.quarkus.runner.GeneratedMain.main(Unknown Source)                                                                                                                                              │
│     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                                                    │
│     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                                                                                  │
│     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                                                                          │
│     at java.base/java.lang.reflect.Method.invoke(Method.java:566)                                                                                                                                        │
│     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:60)                                                                                                                    │
│     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:31)                                                                                                                     │
2022-05-18 09:37:27,323 ERROR [io.qua.run.Application[] (main) Failed to start application (with profile prod): org.apache.camel.dsl.yaml.common.exception.UnsupportedFieldException: Unsupported field  │
│ (steps) for node: <org.snakeyaml.engine.v2.nodes.MappingNode (tag=tag:yaml.org,2002:map, values={ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=from)>; value=18317050 │
│ 84 }{ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=id)>; value=<NodeTuple keyNode=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=id)>; v │
│ alueNode=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=binding)>> }{ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=steps)>; value=665988 │
│ 980 })>                                                                                                                                                                                                  │
│     at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:96)                                                                            │
│     at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:33)                                                                            │
│     at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct(YamlDeserializerBase.java:60)                                                                                                     │
│     at org.apache.camel.dsl.yaml.common.YamlDeserializationContext$2.construct(YamlDeserializationContext.java:231)                                                                                      │
│     at org.apache.camel.dsl.yaml.YamlRoutesBuilderLoader$1.configuration(YamlRoutesBuilderLoader.java:226)                                                                                               │
│     at org.apache.camel.builder.RouteConfigurationBuilder.addRouteConfigurationsToCamelContext(RouteConfigurationBuilder.java:77)                                                                        │
│     at org.apache.camel.impl.engine.AbstractCamelContext.addRoutesConfigurations(AbstractCamelContext.java:1184)                                                                                         │
│     at org.apache.camel.main.RoutesConfigurer.addDiscoveredRoutes(RoutesConfigurer.java:232)                                                                                                             │
│     at org.apache.camel.main.RoutesConfigurer.configureRoutes(RoutesConfigurer.java:213)                                                                                                                 │
│     at org.apache.camel.quarkus.main.CamelMain.configureRoutes(CamelMain.java:70)                                                                                                                        │
│     at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:590)                                                                                                           │
│     at org.apache.camel.quarkus.main.CamelMain.initCamelContext(CamelMain.java:116)                                                                                                                      │
│     at org.apache.camel.quarkus.main.CamelMain.doInit(CamelMain.java:86)                                                                                                                                 │
│     at org.apache.camel.support.service.BaseService.init(BaseService.java:83)                                                                                                                            │
│     at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:137)                                                                                                                           │
│     at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)                                                                                                                    │
│     at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)                                                                                                        │
│     at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy_0(Unknown Source)                                                                                                        │
│     at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy(Unknown Source)                                                                                                          │
│     at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)                                                                                                                                         │
│     at io.quarkus.runtime.Application.start(Application.java:101)                                                                                                                                        │
│     at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:103)                                                                                                          │
│     at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)                                                                                                                                                   │
│     at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)                                                                                                                                                   │
│     at io.quarkus.runtime.Quarkus.run(Quarkus.java:120)                                                                                                                                                  │
│     at io.quarkus.runner.GeneratedMain.main(Unknown Source)                                                                                                                                              │
│     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                                                    │
│     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                                                                                  │
│     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                                                                          │
│     at java.base/java.lang.reflect.Method.invoke(Method.java:566)                                                                                                                                        │
│     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:60)                                                                                                                    │
│     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:31)

I take a look into the configmap timed-greeter-binding-kamelet-timed-greeter-template, the format seems correct.

apiVersion: v1
data:
  content: |
    - template:
        from:
          parameters:
            period: 10000
          steps:
          - set-body:
              constant: '{{message}}'
          - set-header:
              constant: '{{contentType}}'
              name: Content-Type
          - transform:
              simple: ${body.toUpperCase()}
          - to: kamelet:sink
          uri: timer:tick
        id: timed-greeter
kind: ConfigMap
metadata:
  annotations:
    camel.apache.org/source.compression: "false"
    camel.apache.org/source.digest: vQBINxB38Pjx_QERHGVRgaqKT1Dkpz8f7T7oY-5AVeK0
    camel.apache.org/source.generated: "true"
    camel.apache.org/source.language: yaml
    camel.apache.org/source.name: timed-greeter-binding-kamelet-timed-greeter-template
    camel.apache.org/source.type: ""
  creationTimestamp: "2022-05-18T09:21:01Z"
  labels:
    camel.apache.org/generation: "1"
    camel.apache.org/integration: timed-greeter-binding
    camel.apache.org/kamelet: timed-greeter
  name: timed-greeter-binding-kamelet-timed-greeter-template
  namespace: knativetutorial
  ownerReferences:
  - apiVersion: camel.apache.org/v1
    blockOwnerDeletion: true
    controller: true
    kind: Integration
    name: timed-greeter-binding
    uid: 55910662-8919-4f34-8ce9-43358c22ebc4
  resourceVersion: "42670872"
  uid: 780c1fb1-5db6-449a-bf43-cb6f0f3449f3

However, the configmap of timed-greeter-binding-source-000 format seems incorrect.

apiVersion: v1
data:
  content: |
    - route:
        from:
          uri: kamelet:timed-greeter/source
        id: binding
        steps:
        - to: knative:endpoint/sink
kind: ConfigMap
metadata:
  annotations:
    camel.apache.org/source.compression: "false"
    camel.apache.org/source.language: yaml
    camel.apache.org/source.loader: ""
    camel.apache.org/source.name: camel-k-embedded-flow.yaml
  creationTimestamp: "2022-05-18T09:21:01Z"
  labels:
    camel.apache.org/generation: "1"
    camel.apache.org/integration: timed-greeter-binding
  name: timed-greeter-binding-source-000
  namespace: knativetutorial
  ownerReferences:
  - apiVersion: camel.apache.org/v1
    blockOwnerDeletion: true
    controller: true
    kind: Integration
    name: timed-greeter-binding
    uid: 55910662-8919-4f34-8ce9-43358c22ebc4
  resourceVersion: "42670882"
  uid: 1e583ef0-0814-41dd-97fa-7a805bb1c461

I'm not sure how to fix this issue, both configmap are generated after these commands

kubectl apply -n knativetutorial -f get-started/timed-greeter-kamelet.yaml
kubectl create -f advanced/camel-k/get-started/timed-greeter-binding.yaml --edit -o yaml -n knativetutorial

Expected behavior
Should able to run the timed-greeter to complete the tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant