-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
None
I am getting the following error
2022-10-20 11:43:33,363 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.RuntimeCamelException: org.apache.camel.VetoCamelContextStartException: Failure creating route from template: ftp-source at org.apache.camel.support.service.BaseService.doFail(BaseService.java:413) at org.apache.camel.impl.engine.AbstractCamelContext.doFail(AbstractCamelContext.java:3483) at org.apache.camel.support.service.BaseService.fail(BaseService.java:342) at org.apache.camel.impl.engine.AbstractCamelContext.failOnStartup(AbstractCamelContext.java:5028) at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2580) 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) Caused by: org.apache.camel.VetoCamelContextStartException: Failure creating route from template: ftp-source at org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.onContextInitialized(KameletComponent.java:422) at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2871) 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) ... 17 more Caused by: org.apache.camel.component.kamelet.KameletNotFoundException: Kamelet with id ftp-source not found in locations: classpath:/kamelets at org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.createRouteForEndpoint(KameletComponent.java:410) at org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.onContextInitialized(KameletComponent.java:419) ... 21 more Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route source at: >>> ConvertBodyTo[java.io.InputStream] <<< in route: Route(source)[From[ftp:{{username}}@{{connectionHost}}:{{con... because of type must be specified on: null at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:240) 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.component.kamelet.KameletComponent$LifecycleHandler.createRouteForEndpoint(KameletComponent.java:405) ... 22 more Caused by: java.lang.IllegalArgumentException: type must be specified on: null at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:169) at org.apache.camel.support.processor.ConvertBodyProcessor.<init>(ConvertBodyProcessor.java:62) at org.apache.camel.reifier.ConvertBodyReifier.createProcessor(ConvertBodyReifier.java:42) 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) ... 26 more
while running KameletBinding
apiVersion: camel.apache.org/v1alpha1 kind: KameletBinding metadata: annotations: trait.camel.apache.org/quarkus.package-type: native name: ftp-source-kburi-kamelet-to-log-native namespace: jbouska spec: integration: configuration: - type: property value: camel.main.streamCachingEnabled=true sink: properties: {} uri: log:info?showStreams=true source: properties: connectionHost: ftp.jbouska.svc.cluster.local connectionPort: 2121 directoryName: 5c4c49 passiveMode: true password: test username: test ref: apiVersion: camel.apache.org/v1alpha1 kind: Kamelet name: ftp-source namespace: jbouska
If I run the same KameletBinding without the native annotation everything works fine.