You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Samrat Dhillon (Jira)" <ji...@apache.org> on 2021/06/02 11:46:00 UTC
[jira] [Created] (CAMEL-16681) LazyStartProducer can result in
NullPointerException in a multithreaded context
Samrat Dhillon created CAMEL-16681:
--------------------------------------
Summary: LazyStartProducer can result in NullPointerException in a multithreaded context
Key: CAMEL-16681
URL: https://issues.apache.org/jira/browse/CAMEL-16681
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 3.10.0
Reporter: Samrat Dhillon
Fix For: Future
Using LazyStartProducer with multicast or recipientList (along with parallelism) can result in Exceptions. Using camel-kafka producer results in NullPointerException
The below route will result in NPE if kafka producer is marked as lazy start
from("direct:a")
.multicast().parallelProcessing()
.to("direct:b", "direct:c", "direct:d");
from("direct:b")
.to("kafka:topic1?lazyStartProducer=true");
from("direct:c")
.to("kafka:topic2?lazyStartProducer=true");
from("direct:d")
.to("kafka:topic3?lazyStartProducer=true");
--
This message was sent by Atlassian Jira
(v8.3.4#803005)