activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <>
Subject [jira] [Commented] (AMQ-4542) Broken javax.jms.Message.getObjectProperty(String)
Date Fri, 17 May 2013 19:31:16 GMT


Timothy Bish commented on AMQ-4542:

You can create a unit test for this by adding something to activemq-web-demo in
> Broken javax.jms.Message.getObjectProperty(String)
> --------------------------------------------------
>                 Key: AMQ-4542
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.8.0
>            Reporter: Alessandro Di Bella
> 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:

View raw message