You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (JIRA)" <ji...@apache.org> on 2018/01/16 15:21:00 UTC

[jira] [Commented] (ARTEMIS-1610) NPE inside WildcardAddressManager on durable re-creation

    [ https://issues.apache.org/jira/browse/ARTEMIS-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16327222#comment-16327222 ] 

Christopher L. Shannon commented on ARTEMIS-1610:
-------------------------------------------------

Obviously adding a null pointer check where the error happens prevents this issue but my concern with just doing that is it might be hiding the real issue (that maybe the addresses shouldn't be linked at all without bindings, etc).  I'm not familiar enough with the address maanger and post office code yet to know for sure as this is my first time diving into it.

> NPE inside WildcardAddressManager on durable re-creation
> --------------------------------------------------------
>
>                 Key: ARTEMIS-1610
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1610
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.4.0
>            Reporter: Christopher L. Shannon
>            Priority: Major
>         Attachments: NPEWildcardAddressManagerTest.java
>
>
> While doing some testing with Artemis I started seeing a NPE when creating a durable subscription in certain cases.  The issue occurs when there are wildcard addresses being registered/un-registered inside of the WildcardAddressManager before the creation and those addresses are linked with other addresses.  This is causing the NPE inside the addBinding() method because it's trying to reference bindings that do not exist and there is no null check.  I'm not sure the exact fix for this yet but I have a basic Junit test the shows the issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)