You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2009/04/16 14:33:14 UTC

[jira] Updated: (QPID-1813) Use of No Local can result in NPE after persistent message recovery

     [ https://issues.apache.org/jira/browse/QPID-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie updated QPID-1813:
---------------------------------

    Status: Ready To Review  (was: In Progress)

> Use of No Local can result in NPE after persistent message recovery
> -------------------------------------------------------------------
>
>                 Key: QPID-1813
>                 URL: https://issues.apache.org/jira/browse/QPID-1813
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: M3, M4
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: 0.5
>
>
> Summary:
> Because we do not store or recover the messages session Identifier (client id) along with the message on recovery the AMQMessage._sessionIdentifer is never set so subsequent no_local subscribers from that queue will result in NullPointerException.
> Returning null rather than throwing the NPE in AMQMessage getPublisher* will result in no_local checks being skipped. 
> This is ok as the JMS spec for no_local is bound to a TCP connection.. The _sessionIdentifier will only be null after the message has been recovered from the messageStore, therefore, the publishing TCP connection will have been lost.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org