Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4542

Broken javax.jms.Message.getObjectProperty(String)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0
    • 5.9.0
    • Broker
    • None

    Description

      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".

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            aldib Alessandro Di Bella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: