You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2013/05/28 19:45:20 UTC

[jira] [Resolved] (AMQ-4542) Broken javax.jms.Message.getObjectProperty(String)

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

Timothy Bish resolved AMQ-4542.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.9.0
         Assignee: Timothy Bish

Fixed on trunk. 
                
> Broken javax.jms.Message.getObjectProperty(String)
> --------------------------------------------------
>
>                 Key: AMQ-4542
>                 URL: https://issues.apache.org/jira/browse/AMQ-4542
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.8.0
>            Reporter: Alessandro Di Bella
>            Assignee: Timothy Bish
>             Fix For: 5.9.0
>
>
> The implementation provided by ActiveMQ of javax.jms.Message.getObjectProperty(String) does not return a value when the property is JMSXUserID.
> This causes a null pointer exception in org.apache.activemq.web.MessageServlet.setResponseHeaders as message.getObjectProperty(name).toString() is used within the loop.
> Using javax.jms.Message.getStringProperty(String) solves the problem.
> To reproduce, try to consume a message via the REST interface when the broker is configured with populateJMSXUserID="true" and       useAuthenticatedPrincipalForJMSXUserID="true".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira