camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christ Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-10677) SJMSBatchConsumer does not respect the consumerCount parameter
Date Thu, 05 Jan 2017 19:36:58 GMT
Christ Taylor created CAMEL-10677:
-------------------------------------

             Summary: 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
            Priority: Minor
             Fix For: 2.18.1


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