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

SJMSBatchConsumer does not respect the consumerCount parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.19.0
    • Fix Version/s: 2.18.2, 2.19.0
    • Component/s: camel-sjms
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              sa_james Christ Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: