Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-1091

Unable to send a message to address, with bound differently named queue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • None
    • qpid-jms

      AMQP Sender is unable to send a message to the queue X, which is bound to address Y.
      This worked without problems on 7.2.0. Openwire and Core are not affected.

      1. Create an address X
      2. Create a queue Y on address X
      3. Send a message to address X
        java  -jar /var/dtests/node_data/clients/amqx.jar  address --host 10.37.145.217:1099 --username admin --password admin --action add --name test_queue_address
        
        java  -jar /var/dtests/node_data/clients/amqx.jar  queue --host 10.37.145.217:1099 --username admin --password admin --action add --name test_queue_address_qname --address test_queue_address
        
        java  -jar /var/dtests/node_data/clients/aac1.jar sender  --log-msgs dict --broker 10.37.145.217:5672 --conn-auth-mechanisms PLAIN --conn-username admin --conn-password admin --address "test_queue_address" --count 7 # ecode:1 (exp. 0), dur.:2.24 err_cnt:1
        [13:59:36] [INFO] dtestlib.Test :: stderr:
          13:59:33,759 ERROR Error while sending a message!
          javax.jms.InvalidDestinationException: AMQ119002: target address does not exist [condition = amqp:not-found]
          	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:150)
          	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
          	at org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
          	at org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
          	at org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:973)
          	at org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1900(AmqpProvider.java:104)
          	at org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:831)
          	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
          	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          	at java.lang.Thread.run(Thread.java:748)
        
        

      Related tests:

      JAMQNode111Tests/test_multiple_anycast_queues_one_address
      JAMQNode111Tests/test_queue_address
      

              mtoth@redhat.com Michal Toth
              mtoth@redhat.com Michal Toth
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: