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

Queue federation filter failures with AMQP client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • AMQ 7.8.0.GA
    • amqp-protocol
    • None
    • False
    • False
    • Undefined
    • Hide

      The `federated-queue` example reproduces this issue.

      1. Update `pom.xml` to add the Qpid JMS client library dependency
      2. Add a `jndi.properties` to src/main/resources with ConnectionFactory URIs and Queue lookups
      3. Add a `logging.properties` to src/main/resources/activemq/server{0..2}/ with the artemis.core.server logging level set to DEBUG (optional)
      4. Modify the FederatedQueueExample.java source to create an JNDI InitialContext and use lookups for the Queue and three ConnectionFactory instances
      5. Run `mvn verify` as normal

      Updated `federated-queue` example directory attached.

      Show
      The `federated-queue` example reproduces this issue. Update `pom.xml` to add the Qpid JMS client library dependency Add a `jndi.properties` to src/main/resources with ConnectionFactory URIs and Queue lookups Add a `logging.properties` to src/main/resources/activemq/server{0..2}/ with the artemis.core.server logging level set to DEBUG (optional) Modify the FederatedQueueExample.java source to create an JNDI InitialContext and use lookups for the Queue and three ConnectionFactory instances Run `mvn verify` as normal Updated `federated-queue` example directory attached.

      Consuming from a federated queue with an AMQP client causes a NullPointerException in the queue federation filter handling. This exception is reported as

      ERROR [org.apache.activemq.artemis.core.server] AMQ224006: Invalid filter: hyphenated_props:federation-name IS NOT NULL

      Turning on artemis.core.server DEBUG logging, shows the true exception.

      This may invalidate the "federation-name IS NOT NULL" filter preventing infinite federated message forwarding in the default `include-federated="false"` queue federation configuration.

      A similar Jira was opened upstream for OpenWire, but this appears to affect AMQP as well.

      https://issues.apache.org/jira/browse/ARTEMIS-2802

       

              rhn-support-jbertram Justin Bertram
              rhn-gps-rhighley Ryan Highley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: