Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11820

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

XMLWordPrintable

    • Regression
    • 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

      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 fnigro 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.

        1. broker.xml
          8 kB
          Ondřej Kalman
        2. standalone-full-reproducer-durable.xml
          32 kB
          Ondřej Kalman

              fnigro Francesco Nigro
              okalman@redhat.com Ondřej Kalman (Inactive)
              Ondřej Kalman Ondřej Kalman (Inactive)
              Ondřej Kalman Ondřej Kalman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: