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

SJMSBatchConsumer does not respect the consumerCount parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.19.0
    • 2.18.2, 2.19.0
    • camel-sjms
    • None
    • Unknown

    Description

      The following route does not create 20 consumers in my queue.

      Route
      // #myStrategy is an instance of GroupedExchangeAggregationStrategy
          from("sjms-batch:TEST.FOO?aggregationStrategy=#myStrategy&consumerCount=20")
           .to("stream:out").routeId("myrouteid")
      

      When I start the application, I get a couple of NullPointerException.
      usually, the resulting consumerCount that I see in my queue can be computed as:

      consumerCount
      resulting consumerCount = (configured consumerCount - number of NPE at startup)
      

      Here the exception:

      Stacktrace
      [error] java.lang.NullPointerException
      [error]         at org.apache.camel.component.sjms.batch.SjmsBatchConsumer$BatchConsumptionLoop.run(SjmsBatchConsumer.java:302)
      [error]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      [error]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      [error]         at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            sa_james Woyce Batkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: