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

Queue federation filter failures with AMQP client

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • AMQ 7.8.0.GA
    • None
    • amqp-protocol
    • None
    • 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.

    Description

      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

       

      Attachments

        1. federated-queue.zip
          232 kB
        2. mvn-verify.log
          288 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: