Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-1848

"javax.jms.JMSException: Incorrect Routing Type for queue, expecting: ANYCAST" occurs when qpid-jms client consumes a message from a multicast queue as javax.jms.Queue object with FQQN

    XMLWordPrintable

Details

    • Release Notes
    • +
    • Hide
      Previously, sending a message by using the Qpid JMS client to a multicast queue by using FQQN (fully qualified queue name) to an address that had multiple queues configured generated an error message on the client, and the message could not be sent. This issue is resolved.
      Show
      Previously, sending a message by using the Qpid JMS client to a multicast queue by using FQQN (fully qualified queue name) to an address that had multiple queues configured generated an error message on the client, and the message could not be sent. This issue is resolved.
    • Documented as Resolved Issue
    • Verified in a release
      • Dowonload attached files
      • create new artemis broker instance
      • replace etc/broker.xml with the attachment
      • run attached JUnit test program

    Description

      broker.xml has following address.

         <address name="publish.A">
           <multicast>
             <queue name="receive.1">
               <durable>true</durable>
             </queue>
             <queue name="receive.2">
               <durable>true</durable>
             </queue>
           </multicast>
         </address>
      

      qpid-jms-client can not consume any message from muliticast queue as javax.jms.Queue with FQQN, "publish.A::receive.1".
      qpid-jms-client will log following error.

      javax.jms.JMSException: Address publish.A is not configured for queue support [condition = amqp:illegal-state]
      	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
      	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
      	at org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:172)
      	at org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:116)
      	at org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:884)
      	at org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:93)
      	at org.apache.qpid.jms.provider.amqp.AmqpProvider$18.run(AmqpProvider.java:789)
      	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:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        1. broker.xml
          10 kB
        2. reproducer.zip
          7 kB

        Activity

          People

            gaohoward Howard Gao
            rhn-support-hfuruich Hisao Furuichi
            Andy Taylor
            Michal Toth Michal Toth
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d