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 2017/01/09 13:01:58 UTC

[jira] [Resolved] (CAMEL-10677) SJMSBatchConsumer does not respect the consumerCount parameter

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

Claus Ibsen resolved CAMEL-10677.
---------------------------------
    Resolution: Fixed

Thanks for reporting. You can try testing with latest code again

> SJMSBatchConsumer does not respect the consumerCount parameter
> --------------------------------------------------------------
>
>                 Key: CAMEL-10677
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10677
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sjms
>    Affects Versions: 2.19.0
>            Reporter: Christ Taylor
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.18.2, 2.19.0
>
>
> The following route does not create 20 consumers in my queue.
> {code:title=Route|borderStyle=solid}
> // #myStrategy is an instance of GroupedExchangeAggregationStrategy
>     from("sjms-batch:TEST.FOO?aggregationStrategy=#myStrategy&consumerCount=20")
>      .to("stream:out").routeId("myrouteid")
> {code}
> 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:
> {code:title=consumerCount|borderStyle=solid}
> resulting consumerCount = (configured consumerCount - number of NPE at startup)
> {code}
> Here the exception:
> {code:title=Stacktrace|borderStyle=solid}
> [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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)