You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2018/01/03 17:07:00 UTC
[jira] [Resolved] (ARTEMIS-1526)
ActiveMQServerControl.listConsumers() can fail with NullPointer
[ https://issues.apache.org/jira/browse/ARTEMIS-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram resolved ARTEMIS-1526.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.5.0
> ActiveMQServerControl.listConsumers() can fail with NullPointer
> ----------------------------------------------------------------
>
> Key: ARTEMIS-1526
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1526
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.4.0
> Reporter: Pat Fox
> Priority: Minor
> Fix For: 2.5.0
>
>
> race condition between ActiveMQServerControl.listConsumers() and closing client sessions can cause the following NullPointer
> {code}
> java.lang.NullPointerException: null
> at org.apache.activemq.artemis.core.management.impl.view.ConsumerView.toJson(Unknown Source)
> at org.apache.activemq.artemis.core.management.impl.view.ConsumerView.toJson(Unknown Source)
> at org.apache.activemq.artemis.core.management.impl.view.ActiveMQAbstractView.getResultsAsJson(ActiveMQAbstractView.java:68)
> at org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl.listConsumers(ActiveMQServerControlImpl.java:1727)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
> at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
> at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
> at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
> at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
> {code}
> The ActiveMQServerControl.listConsumers() retrieves the associated ServerSession and this may be null if the session has been closed AFTER the listConsumers() has been called but BEFORE the session is retrieved.
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)