An AMQP channel is closed on a channel error. Two common things that can cause a channel error:
- Trying to publish a message to an exchange that doesn’t exist
- Trying to publish a message with the immediate flag set that doesn’t have a queue with an active consumer set
I would look into setting up a ShutdownListener on the channel you’re trying to use to publish a message using the addShutdownListener() to catch the shutdown event and look at what caused it.