AMQ 6 client fails to connect to AMQ 7 broker with error "javax.jms.JMSException: Cannot send, channel has already failed: tcp://xx.xx.xx.xx:61616"

Solution Verified - Updated -

Issue

When trying to connect an application that uses the AMQ 6 client libraries via the openwire protocol to an AMQ 7 broker, the connection fails with

javax.jms.JMSException: Cannot send, channel has already failed: tcp://xx.xx.xx.xx:61616

The AMQ 7 broker at the same time raises this error:

2020-01-14 13:58:28,163 ERROR [org.apache.activemq.artemis.core.client] AMQ214013: Failed to decode packet: java.lang.IllegalArgumentException: AMQ219032: Invalid type: 1

(full call stack of the error in Diagnostics section)

What is causing the problem?

Environment

  • AMQ 7 broker
  • AMQ 6 client libraries
  • Openwire protocol

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content