Howard Gao created ARTEMIS-2230:
-----------------------------------

             Summary: Exception closing advisory consumers when 
supportAdvisory=false
                 Key: ARTEMIS-2230
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2230
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: OpenWire
    Affects Versions: 2.6.4
            Reporter: Howard Gao
            Assignee: Howard Gao
             Fix For: 2.6.5


When broker's advisory is disabled (supportAdvisory=false) any advisory 
consumer won't get created at broker and the advisory consumer ID won't be 
stored.

Legacy openwire clients can have a reference of advisory consumer regardless 
broker's settings and therefore when it closes the advisory consumer the broker 
has no reference to it. Therefore broker throws an exception like:

javax.jms.IllegalStateException: Cannot remove a consumer that had not been 
registered

If the broker stores the consumer info (even it doesn't create it) the 
exception can be avoid.

 



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

Reply via email to