Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16681

LazyStartProducer can result in NullPointerException in a multithreaded context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.10.0
    • 3.7.5, 3.11.0
    • camel-core
    • None
    • Unknown

    Description

      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");

      Attachments

        Activity

          People

            Unassigned Unassigned
            samrat.dhillon Samrat Dhillon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: