Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.19.0
-
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)