edeandrea commented on issue #1870:
URL: https://github.com/apache/camel-k/issues/1870#issuecomment-758194897
FYI setting `camel.main.autowired-enabled=false` does not work. Furthermore
the integration does not start:
```
exec java -cp
./resources:/etc/camel/conf:/etc/camel/conf.d/_configmaps/camelk-rhdg-client-config:/etc/camel/conf.d/_secrets/albums-rhdg-cert:/etc/camel/resources:/etc/camel/sources/i-source-000:dependencies/camel-k-integration-1.2.0-runner.jar:dependencies/com.fasterxml.jackson.core.jackson-annotations-2.11.2.redhat-00002.jar:dependencies/com.fasterxml.jackson.core.jackson-core-2.11.2.redhat-00002.jar:dependencies/com.fasterxml.jackson.core.jackson-databind-2.11.2.redhat-00002.jar:dependencies/com.fasterxml.jackson.datatype.jackson-datatype-jdk8-2.11.2.redhat-00002.jar:dependencies/com.fasterxml.jackson.datatype.jackson-datatype-jsr310-2.11.2.redhat-00002.jar:dependencies/com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.11.2.redhat-00002.jar:dependencies/com.fasterxml.jackson.module.jackson-module-parameter-names-2.11.2.redhat-00002.jar:dependencies/com.github.ben-manes.caffeine.caffeine-2.8.5.redhat-00003.jar:dependencies/com.github.luben.zstd-jni-1.4.3.1-redhat-00
002.jar:dependencies/com.g...
2021-01-11 20:09:04,915 INFO [org.apa.cam.sup.LRUCacheFactory] (main)
Detected and using LRUCacheFactory: camel-caffeine-lrucache
2021-01-11 20:09:05,603 INFO [org.apa.cam.k.Runtime] (main) Apache Camel K
Runtime 1.5.0.fuse-jdk11-800010-redhat-00001
2021-01-11 20:09:05,605 INFO [org.apa.cam.qua.cor.CamelBootstrapRecorder]
(main) bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
2021-01-11 20:09:05,814 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main)
Loading routes from: SourceDefinition{name='RHDGUpdate', language='java',
location='file:/etc/camel/sources/i-source-000/RHDGUpdate.java', }
2021-01-11 20:09:10,013 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main)
Failed to start application: org.apache.camel.PropertyBindingException: Error
binding property (camel.main.autowiredEnabled=false) with name:
autowiredEnabled on bean:
org.apache.camel.main.MainConfigurationProperties@5ef6fd7f with value: false
at
org.apache.camel.main.BaseMainSupport.setPropertiesOnTarget(BaseMainSupport.java:238)
at
org.apache.camel.main.BaseMainSupport.autoConfigurationMainConfiguration(BaseMainSupport.java:1298)
at
org.apache.camel.main.BaseMainSupport.autoconfigure(BaseMainSupport.java:564)
at
org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:654)
at
org.apache.camel.quarkus.main.CamelMain.initCamelContext(CamelMain.java:97)
at org.apache.camel.quarkus.main.CamelMain.doInit(CamelMain.java:67)
at
org.apache.camel.support.service.BaseService.init(BaseService.java:83)
at
org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:118)
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$boot-173480958.deploy_0(CamelBootstrapProcessor$boot-173480958.zig:101)
at
io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy(CamelBootstrapProcessor$boot-173480958.zig:40)
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:608)
at io.quarkus.runtime.Application.start(Application.java:90)
at
io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:91)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:61)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:106)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
2021-01-11 20:09:10,014 ERROR [io.qua.application] (main) Failed to start
application (with profile prod): java.lang.RuntimeException:
java.lang.RuntimeException: org.apache.camel.PropertyBindingException: Error
binding property (camel.main.autowiredEnabled=false) with name:
autowiredEnabled on bean:
org.apache.camel.main.MainConfigurationProperties@5ef6fd7f with value: false
at
org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:47)
at
io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy_0(CamelBootstrapProcessor$boot-173480958.zig:101)
at
io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy(CamelBootstrapProcessor$boot-173480958.zig:40)
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:608)
at io.quarkus.runtime.Application.start(Application.java:90)
at
io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:91)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:61)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:106)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
Caused by: java.lang.RuntimeException:
org.apache.camel.PropertyBindingException: Error binding property
(camel.main.autowiredEnabled=false) with name: autowiredEnabled on bean:
org.apache.camel.main.MainConfigurationProperties@5ef6fd7f with value: false
at
org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:65)
at
org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
... 9 more
Caused by: org.apache.camel.PropertyBindingException: Error binding property
(camel.main.autowiredEnabled=false) with name: autowiredEnabled on bean:
org.apache.camel.main.MainConfigurationProperties@5ef6fd7f with value: false
at
org.apache.camel.main.BaseMainSupport.setPropertiesOnTarget(BaseMainSupport.java:238)
at
org.apache.camel.main.BaseMainSupport.autoConfigurationMainConfiguration(BaseMainSupport.java:1298)
at
org.apache.camel.main.BaseMainSupport.autoconfigure(BaseMainSupport.java:564)
at
org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:654)
at
org.apache.camel.quarkus.main.CamelMain.initCamelContext(CamelMain.java:97)
at org.apache.camel.quarkus.main.CamelMain.doInit(CamelMain.java:67)
at
org.apache.camel.support.service.BaseService.init(BaseService.java:83)
at
org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:118)
at
org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
... 10 more
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]