You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Michael Wong (JIRA)" <ji...@apache.org> on 2014/11/15 08:23:33 UTC
[jira] [Comment Edited] (AMQ-5426) ActiveMQMessageConsumer race
condition
[ https://issues.apache.org/jira/browse/AMQ-5426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213441#comment-14213441 ]
Michael Wong edited comment on AMQ-5426 at 11/15/14 7:23 AM:
-------------------------------------------------------------
Finally able to reproduce the error. Test attached.
was (Author: michael_khw):
Test attached
> ActiveMQMessageConsumer race condition
> --------------------------------------
>
> 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
> Reporter: Michael Wong
> Priority: Minor
> Attachments: AMQ5426Test.java
>
>
> ActiveMQMessageConsumer could run into NPE when the consumer/session/connection is closing.
> 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)