You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/06/01 18:50:00 UTC
[jira] [Assigned] (CAMEL-23659) camel-jbang - Stub mode should ignore property bindings for stubbed components
[ https://issues.apache.org/jira/browse/CAMEL-23659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-23659:
-----------------------------------
Assignee: Claus Ibsen
> 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: Improvement
> 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)