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 2021/06/02 13:55:00 UTC

[jira] [Resolved] (CAMEL-16681) LazyStartProducer can result in NullPointerException in a multithreaded context

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

Claus Ibsen resolved CAMEL-16681.
---------------------------------
    Fix Version/s:     (was: Future)
                   3.11.0
                   3.7.5
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 3.7.5, 3.11.0
>
>
> 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)