Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-4496

[Java client] Improve error reporting for invalid addresses

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.18, 0.20
    • Fix Version/s: 0.21
    • Component/s: JMS AMQP 0-x
    • Labels:

      Description

      In the following example, the second address should throw an exception notifying that the request type is different from the already present object

      1. java -cp ${CLASSPATH} org.apache.qpid.example.Spout "ex;{create:sender, node: {type:topic,x-declare:

      {type:topic}

      }}"
      2. java -cp ${CLASSPATH} org.apache.qpid.example.Spout "ex;{create:sender, node: {type:topic,x-declare:

      {type:fanout}

      }}"

      Also we need to provide a clear messages when an assertion is false.
      Ex.
      1. java -cp ${CLASSPATH} org.apache.qpid.example.Spout "ex;{create:sender, node: {type:topic,x-declare:

      {type:topic}

      }}"
      2. java -cp ${CLASSPATH} org.apache.qpid.example.Spout "ex;{assert:sender, node: {type:topic,x-declare:

      {type:fanout}

      }}"

      All though we currently throw an exception, the message is not very useful.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: