[ https://issues.apache.org/jira/browse/CAMEL-21962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944304#comment-17944304 ]
Aurélien Pupier commented on CAMEL-21962: ----------------------------------------- removing the property camel.main.lighweight for CSimple example is fixing the issue. I will provide the PR for it. The other part with useProperties wil need to be improved too to avoid using deprecated method but will seprate the work and bring back to workign examples first > CSimpleTest is failing in camel-examples repository > --------------------------------------------------- > > Key: CAMEL-21962 > URL: https://issues.apache.org/jira/browse/CAMEL-21962 > Project: Camel > Issue Type: Task > Components: examples > Reporter: Aurélien Pupier > Priority: Minor > Fix For: 4.x > > > {noformat} > org.apache.camel.PropertyBindingException: Error binding property > (camel.main.lightweight=true) with name: lightweight on bean: > org.apache.camel.main.MainConfigurationProperties@1deb2c43 with value: true > at > org.apache.camel.main.MainHelper.setPropertiesOnTarget(MainHelper.java:380) > at > org.apache.camel.main.BaseMainSupport.autoConfigurationMainConfiguration(BaseMainSupport.java:2388) > at > org.apache.camel.main.BaseMainSupport.autoconfigure(BaseMainSupport.java:566) > at org.apache.camel.main.MainSupport.autoconfigure(MainSupport.java:79) > at > org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:919) > at > org.apache.camel.test.main.junit5.MainForTest.init(MainForTest.java:46) > at > org.apache.camel.test.main.junit5.CamelMainTestSupport.createCamelContext(CamelMainTestSupport.java:147) > at > org.apache.camel.test.junit5.TransientCamelContextManager.initialize(TransientCamelContextManager.java:87) > at > org.apache.camel.test.junit5.TransientCamelContextManager.createCamelContext(TransientCamelContextManager.java:66) > at > org.apache.camel.test.junit5.CamelTestSupport.setUp(CamelTestSupport.java:150) > at java.base/java.lang.reflect.Method.invoke(Unknown Source) > at java.base/java.util.ArrayList.forEach(Unknown Source) > at java.base/java.util.ArrayList.forEach(Unknown Source) > {noformat} > it seems to be related to the changes in 4.9 > https://camel.apache.org/blog/2024/10/modernizing-test-code-how-to/ > the method useOverridePropertiesWithPropertiesComponent > https://github.com/apache/camel-examples/blob/09051c7c8d33f34ec933ecde67456cff67f6fc59/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java#L36 > is now deprecated (and dos't seem to work anymore) -- This message was sent by Atlassian Jira (v8.20.10#820010)