Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 55D30200BF4 for ; Fri, 6 Jan 2017 09:29:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 54746160B48; Fri, 6 Jan 2017 08:29:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9FB4B160B1F for ; Fri, 6 Jan 2017 09:28:59 +0100 (CET) Received: (qmail 60845 invoked by uid 500); 6 Jan 2017 08:28:58 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 60823 invoked by uid 99); 6 Jan 2017 08:28:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2017 08:28:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BB6BE2C03DE for ; Fri, 6 Jan 2017 08:28:58 +0000 (UTC) Date: Fri, 6 Jan 2017 08:28:58 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-10677) SJMSBatchConsumer does not respect the consumerCount parameter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 06 Jan 2017 08:29:00 -0000 [ 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: (was: 2.18.1) 2.19.0 > 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.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)