Qpid
  1. Qpid
  2. QPID-2930

JMS msg.getPropertyNames() method should not return x-amqp-0-10.routing-key

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10
    • Component/s: Java Client
    • Labels:
      None

      Description

      Description of problem:
      JMS msg.getPropertyNames() method should not return x-amqp-0-10.routing-key,
      x-amqp-0-10.routing-key is internal property. It cause exception if loop via
      ProertyName enumeration.

      Code:
      ===
      Enumeration<String> enu = msg.getPropertyNames();
      while (enu.hasMoreElements())

      { String name = (String) enu.nextElement(); String value = msg.getStringProperty(name); }

      Exception
      =========
      Caused by: javax.jms.MessageFormatException:
      getString("x-amqp-0-10.routing-key") failed as value of type class [B is an array.
      at
      org.apache.qpid.client.message.AMQMessageDelegate_0_10.getStringProperty(AMQMessageDelegate_0_10.java:639)
      at
      org.apache.qpid.client.message.AbstractJMSMessage.getStringProperty(AbstractJMSMessage.java:254)

        Activity

        Rajith Attapattu made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.10 [ 12316273 ]
        Fix Version/s 0.9 [ 12315382 ]
        Resolution Fixed [ 1 ]
        Robbie Gemmell made changes -
        Field Original Value New Value
        Fix Version/s 0.9 [ 12315382 ]
        Fix Version/s 0.8 [ 12315477 ]
        Rajith Attapattu created issue -

          People

          • Assignee:
            Rajith Attapattu
            Reporter:
            Rajith Attapattu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development