Uploaded image for project: 'A-MQ Broker'
  1. A-MQ Broker
  2. ENTMQBR-711

Message Driven Bean can't create durable subscription on remote A-MQ7 broker

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: A-MQ 7.0.0.GA
    • Fix Version/s: AMQ 7.0.3.GA
    • Component/s: None
    • Labels:
    • Target Release:
    • Steps to Reproduce:
      Hide

      Run A-MQ 7 instance with provided config.
      Run EAP 7.1 with provided config.
      Deploy provided MDB
      Check EAP 7.1 log

      Show
      Run A-MQ 7 instance with provided config. Run EAP 7.1 with provided config. Deploy provided MDB Check EAP 7.1 log

      Description

      When mdb is configured to make durable subscription on topic on remote A-MQ 7 server, EAP 7.1.ER1 resource adapter will throw following error

      09:29:30,815 ERROR [org.apache.activemq.artemis.ra] (default-threads - 1) AMQ154003: Unable to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.apache.activemq.artemis.ra.ActiveMQResourceAdapter@b7d04776 destination=java:/test_topic destinationType=javax.jms.Topic ack=Auto-acknowledge durable=true clientID=null subscription=neco user=null maxSession=15): ActiveMQIllegalStateException[errorType=ILLEGAL_STATE message=AMQ119025: Cannot delete queue neco on binding neco - it has consumers = org.apache.activemq.artemis.core.postoffice.impl.LocalQueueBinding]
      	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:404)
      	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:315)
      	at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.deleteQueue(ActiveMQSessionContext.java:248)
      	at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.deleteQueue(ClientSessionImpl.java:327)
      	at org.apache.activemq.artemis.ra.inflow.ActiveMQMessageHandler.setup(ActiveMQMessageHandler.java:146)
      	at org.apache.activemq.artemis.ra.inflow.ActiveMQActivation.setup(ActiveMQActivation.java:316)
      	at org.apache.activemq.artemis.ra.inflow.ActiveMQActivation.reconnect(ActiveMQActivation.java:659)
      	at org.apache.activemq.artemis.ra.inflow.ActiveMQActivation$SetupActivation.run(ActiveMQActivation.java:699)
      	at org.jboss.jca.core.workmanager.WorkWrapper.runWork(WorkWrapper.java:445)
      	at org.jboss.as.connector.services.workmanager.WildflyWorkWrapper.runWork(WildflyWorkWrapper.java:68)
      	at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:223)
      	at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
      	at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)
      	at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
      	at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:828)
      	at java.lang.Thread.run(Thread.java:745)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      
      

      This is regression against A-MQ 7.0.0.ER1
      Note: I used build provided by Francesco Nigro containing fixes for JBEAP-10331
      Note2: This issue is also present in https://github.com/rh-messaging/activemq-artemis/tree/2.0.0.amq-700x

      Customer impact: Applications which utilize MDBs with durable subscription will not work.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  martyn-taylor Martyn Taylor
                  Reporter:
                  okalman Ondřej Kalman
                  Tester:
                  Ondřej Kalman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: