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

[LTS] ClassCastException: DivertBinding cannot be cast to QueueBinding

XMLWordPrintable

      Standalone broker instance with the following relevant setup:

               <address-setting match="#">
                  <dead-letter-address>DLQ</dead-letter-address>
                  <expiry-address>ExpiryQueue</expiry-address>
                  <redelivery-delay>0</redelivery-delay>
                  <!-- with -1 only the global-max-size is in use for limiting -->
                  <max-size-bytes>100mb</max-size-bytes>
                  <message-counter-history-day-limit>10</message-counter-history-day-limit>
                  <address-full-policy>PAGE</address-full-policy>
                  <auto-create-queues>true</auto-create-queues>
                  <auto-create-addresses>true</auto-create-addresses>
                  <auto-create-jms-queues>true</auto-create-jms-queues>
                  <auto-create-jms-topics>true</auto-create-jms-topics>
                  <auto-delete-queues>false</auto-delete-queues>
                  <auto-delete-addresses>false</auto-delete-addresses>
               </address-setting>
      

      In artemis.log we have 15 ClassCastExceptions, all on auto create queue (openwire consumer):

      2021-07-20 09:15:50,585 WARN  [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : java.lang.ClassCastException: org.apache.activemq.artemis.core.postoffice.impl.DivertBinding cannot be cast to org.apache.activemq.artemis.core.postoffice.QueueBinding
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createQueue(ActiveMQServerImpl.java:3676) [artemis-server-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createQueue(ActiveMQServerImpl.java:3667) [artemis-server-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.createQueue(ServerSessionImpl.java:730) [artemis-server-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession.checkAutoCreateQueue(AMQSession.java:248) [artemis-openwire-protocol-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession.createConsumer(AMQSession.java:184) [artemis-openwire-protocol-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.addConsumer(OpenWireConnection.java:894) [artemis-openwire-protocol-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddConsumer(OpenWireConnection.java:1198) [artemis-openwire-protocol-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.command.ConsumerInfo.visit(ConsumerInfo.java:352) [activemq-client-5.11.0.redhat-630495.jar:5.11.0.redhat-630495]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:322) [artemis-openwire-protocol-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.utils.actors.Actor.doTask(Actor.java:33) [artemis-commons-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_292]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_292]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.16.0.redhat-00012.jar:2.16.0.redhat-00012]
      

              rhn-support-jbertram Justin Bertram
              dbruscin Domenico Francesco Bruscino
              Roman Vais Roman Vais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: