[ 
https://issues.apache.org/jira/browse/CAMEL-23659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-23659.
---------------------------------
    Resolution: Fixed

> camel-jbang - Stub mode should ignore property bindings for stubbed components
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-23659
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23659
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.21.0
>
>
> When using --stub=kafka (or other components), if application.properties 
> contains component-level configuration like 
> camel.component.kafka.brokers=localhost:9092, the stub component does not 
> have those properties and a PropertyBindingException (NPE) is thrown.
> The stub mode should gracefully ignore or skip property bindings that target 
> stubbed components, so that users can run with --stub without having to 
> comment out or remove their component configuration.
> Stack trace:
> {code}
> java.lang.NullPointerException: e
>     at java.base/java.util.Objects.requireNonNull(Objects.java:259)
>     at 
> org.apache.camel.PropertyBindingException.<init>(PropertyBindingException.java:87)
>     at 
> org.apache.camel.main.MainHelper.setPropertiesOnTarget(MainHelper.java:380)
>     at 
> org.apache.camel.main.BaseMainSupport.doAutoConfigurationFromProperties(BaseMainSupport.java:2876)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to