-
Bug
-
Resolution: Done
-
Blocker
-
camel-k-1.8
-
None
-
False
-
None
-
False
-
%
-
+
-
Automated
-
https://github.com/openshift-integration/camel-k-example-api/pull/21, https://github.com/openshift-integration/camel-k-example-basic/pull/31, https://github.com/openshift-integration/camel-k-example-kafka/pull/17, https://github.com/openshift-integration/camel-k-example-saas/pull/12, https://github.com/openshift-integration/camel-k-example-jdbc/pull/7
https://github.com/openshift-integration/camel-k-example-jdbc:
Running the quickstart with kamel run JDBCSelect.java --build-property quarkus.datasource.camel.db-kind=postgresql --config secret:my-datasource -d mvn:io.quarkus:quarkus-jdbc-postgresql results in:
2022-06-30 06:58:48,458 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): org.apache.camel.NoSuchEndpointException: No endpoint could be found for: jdbc://camel, please check your classpath contains the needed Camel component jar. at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:974) at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:850) at org.apache.camel.support.CamelContextHelper.resolveEndpoint(CamelContextHelper.java:123) at org.apache.camel.reifier.SendReifier.resolveEndpoint(SendReifier.java:43) at org.apache.camel.reifier.SendReifier.createProcessor(SendReifier.java:36) at org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:838) at org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:579) at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:236) at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:74) at org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:874) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:764) at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2862) at org.apache.camel.quarkus.core.FastCamelContext.doInit(FastCamelContext.java:172) at org.apache.camel.support.service.BaseService.init(BaseService.java:83) at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2568) at org.apache.camel.support.service.BaseService.start(BaseService.java:111) at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2587) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:253) at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94) at org.apache.camel.support.service.BaseService.start(BaseService.java:119) at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:140) 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)
https://github.com/openshift-integration/camel-k-example-saas:
The dependency for camel:servicenow is not recognized by the operator that causes the integration to fail:
2022-06-30 07:14:58,298 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): org.joor.ReflectException: Compilation error: /SalesforceToServiceNow.java:7: error: package org.apache.camel.component.servicenow does not exist import org.apache.camel.component.servicenow.ServiceNowConstants; ^ /SalesforceToServiceNow.java:46: error: cannot find symbol .setHeader(ServiceNowConstants.ACTION, constant(ServiceNowConstants.ACTION_CREATE)) ^ symbol: variable ServiceNowConstants location: class SalesforceToServiceNow /SalesforceToServiceNow.java:46: error: cannot find symbol .setHeader(ServiceNowConstants.ACTION, constant(ServiceNowConstants.ACTION_CREATE)) ^ symbol: variable ServiceNowConstants location: class SalesforceToServiceNow 3 errors at org.joor.Compile.compile(Compile.java:105) at org.joor.Reflect.compile(Reflect.java:104) at org.joor.Reflect.compile(Reflect.java:79) at org.apache.camel.dsl.java.joor.JavaRoutesBuilderLoader.doLoadRouteBuilder(JavaRoutesBuilderLoader.java:50) at org.apache.camel.dsl.support.RouteBuilderLoaderSupport.loadRoutesBuilder(RouteBuilderLoaderSupport.java:60) at org.apache.camel.impl.engine.DefaultRoutesLoader.findRoutesBuilders(DefaultRoutesLoader.java:100) at org.apache.camel.spi.RoutesLoader.findRoutesBuilders(RoutesLoader.java:119) at org.apache.camel.k.support.SourcesSupport.load(SourcesSupport.java:163) at org.apache.camel.k.support.SourcesSupport.loadSources(SourcesSupport.java:84) at org.apache.camel.k.listener.SourcesConfigurer.accept(SourcesConfigurer.java:80) at org.apache.camel.k.listener.AbstractPhaseListener.accept(AbstractPhaseListener.java:32) at org.apache.camel.k.quarkus.Application$ListenerAdapter.invokeListeners(Application.java:135) at org.apache.camel.k.quarkus.Application$ListenerAdapter.beforeConfigure(Application.java:97) at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:532) 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)
Computed dependencies discrepancy between 1.8.0 and 1.6.7: 1.8.0: dependencies: - camel:direct - camel:jackson - camel:salesforce - mvn:org.apache.camel.k:camel-k-runtime - mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl 1.6.7: dependencies: - camel:direct - camel:jackson - camel:salesforce - camel:servicenow - mvn:org.apache.camel.k:camel-k-runtime - mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl
after adding the camel-servicenow dependency manually, it fails with a different error:
2022-06-30 10:38:13,420 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.ClassNotFoundException: javax.ws.rs.client.ClientRequestFilter at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:107) at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:57) at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:97) at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:57) at org.apache.camel.component.servicenow.ServiceNowClient.<init>(ServiceNowClient.java:56) at org.apache.camel.component.servicenow.AbstractServiceNowProcessor.<init>(AbstractServiceNowProcessor.java:53) at org.apache.camel.component.servicenow.releases.helsinki.HelsinkiServiceNowTableProcessor.<init>(HelsinkiServiceNowTableProcessor.java:38) at org.apache.camel.component.servicenow.releases.helsinki.HelsinkiServiceNowProducer.<init>(HelsinkiServiceNowProducer.java:44) at org.apache.camel.component.servicenow.ServiceNowRelease$3.get(ServiceNowRelease.java:38) at org.apache.camel.component.servicenow.ServiceNowEndpoint.createProducer(ServiceNowEndpoint.java:56) at org.apache.camel.support.DefaultEndpoint.createAsyncProducer(DefaultEndpoint.java:197) at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:245) at org.apache.camel.support.service.BaseService.start(BaseService.java:119) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:130) at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1655) at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:60) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:130) at org.apache.camel.impl.engine.DefaultChannel.doStart(DefaultChannel.java:126) at org.apache.camel.support.service.BaseService.start(BaseService.java:119) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:116) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:130) at org.apache.camel.processor.Pipeline.doStart(Pipeline.java:221) at org.apache.camel.support.service.BaseService.start(BaseService.java:119) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113) at org.apache.camel.support.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:89) at org.apache.camel.support.service.BaseService.start(BaseService.java:119) at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113) at org.apache.camel.impl.engine.RouteService.startChildServices(RouteService.java:396) at org.apache.camel.impl.engine.RouteService.doWarmUp(RouteService.java:193) at org.apache.camel.impl.engine.RouteService.warmUp(RouteService.java:121) at org.apache.camel.impl.engine.InternalRouteStartupManager.doWarmUpRoutes(InternalRouteStartupManager.java:306) at org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:189) at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRoutes(InternalRouteStartupManager.java:147) at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3300) at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2952) at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2903) at org.apache.camel.support.service.BaseService.start(BaseService.java:119) at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2587) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:253) at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94) at org.apache.camel.support.service.BaseService.start(BaseService.java:119) at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:140) 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)
Also running the integration as suggested by the quickstarts logs warning about deprecated option:
Warn: --secret has been deprecated. You should use --config secret:my-secret instead. Warn: --secret has been deprecated. You should use --config secret:my-secret instead.
https://github.com/openshift-integration/camel-k-example-api:
The command specified in the readme doesn't work with 1.8.0:
kamel run API.java --open-api openapi.yaml --property-file test/minio.properties
Modeline options have been loaded from source files
Full command: kamel run API.java --open-api openapi.yaml --property-file test/minio.properties --dependency=camel-quarkus-openapi-java
Warn: --property-file has been deprecated. You should use --property file:/path/to/conf.properties instead.
Error: invalid openapi specification "openapi.yaml". It supports only file or configmap
https://github.com/openshift-integration/camel-k-example-basic:
Warning about deprecated option:
kamel run Routing.java --property-file routing.properties Warn: --property-file has been deprecated. You should use --property file:/path/to/conf.properties instead. Warn: --property-file has been deprecated. You should use --property file:/path/to/conf.properties instead.
https://github.com/openshift-integration/camel-k-example-kafka:
Warning about deprecated option:
kamel run --secret kafka-props SaslSSLKafkaConsumer.java
Modeline options have been loaded from source files
Full command: kamel run --secret kafka-props SaslSSLKafkaConsumer.java --dependency=mvn:org.apache.camel.quarkus:camel-quarkus-kafka --dependency=mvn:io.strimzi:kafka-oauth-client:0.7.1.redhat-00003
Warn: --secret has been deprecated. You should use --config secret:my-secret instead.
Warn: --secret has been deprecated. You should use --config secret:my-secret instead.
Integration "sasl-ssl-kafka-consumer" created
- is related to
-
ENTESB-18445 Make Camel K consume Quarkus Platform BOMs instead of org.apache.camel.quarkus:camel-quarkus-bom
- Closed
- relates to
-
CMLK-164 Downstream kamel CLI pointing to upstream operator image
- Closed