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 167A5200B4A for ; Tue, 5 Jul 2016 22:39:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 15348160A7B; Tue, 5 Jul 2016 20:39:13 +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 636DF160A60 for ; Tue, 5 Jul 2016 22:39:12 +0200 (CEST) Received: (qmail 95415 invoked by uid 500); 5 Jul 2016 20:39:11 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 95385 invoked by uid 99); 5 Jul 2016 20:39:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 20:39:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 453B32C02A8 for ; Tue, 5 Jul 2016 20:39:11 +0000 (UTC) Date: Tue, 5 Jul 2016 20:39:11 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-5426) ActiveMQMessageConsumer could run into NPE due to concurrent access to internal state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Jul 2016 20:39:13 -0000 [ https://issues.apache.org/jira/browse/AMQ-5426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363187#comment-15363187 ] ASF subversion and git services commented on AMQ-5426: ------------------------------------------------------ Commit 3856c3999ac8a29171c09de99bd0e8bf9cdaff4e in activemq's branch refs/heads/master from [~cshannon] [ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=3856c39 ] Revert "https://issues.apache.org/jira/browse/AMQ-5426" This reverts commit 6bfa13b6e707fb3465a9193cd44c478514fcd948. > ActiveMQMessageConsumer could run into NPE due to concurrent access to internal state > ------------------------------------------------------------------------------------- > > Key: AMQ-5426 > URL: https://issues.apache.org/jira/browse/AMQ-5426 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.8.0, 5.9.1, 5.10.0 > Reporter: Michael Wong > Assignee: Christopher L. Shannon > Priority: Minor > Fix For: 5.14.0, 5.13.4 > > Attachments: AMQ5426Test.java > > > ActiveMQMessageConsumer could run into NPE when the consumer is closing and a message arrived at the same time. > Here is the stacktrace: > java.lang.NullPointerException > at org.apache.activemq.ActiveMQMessageConsumer.ackLater(ActiveMQMessageConsumer.java:979) > at org.apache.activemq.ActiveMQMessageConsumer.afterMessageIsConsumed(ActiveMQMessageConsumer.java:929) > at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1323) > at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131) > at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202) > at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129) > at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.3.4#6332)