camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-10677) SJMSBatchConsumer does not respect the consumerCount parameter
Date Mon, 09 Jan 2017 12:53:58 GMT

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

Claus Ibsen updated CAMEL-10677:
--------------------------------
    Fix Version/s: 2.18.2

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

Mime
View raw message