Class AutoRecoverConnectionNotCurrentlyOpenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.amqp.AmqpException
org.springframework.amqp.rabbit.connection.AutoRecoverConnectionNotCurrentlyOpenException
All Implemented Interfaces:
Serializable

public class AutoRecoverConnectionNotCurrentlyOpenException extends AmqpException
An exception thrown if the connection is an auto recover connection that is not currently open and is in the process of being recovered.

Spring AMQP has had its own recovery logic since day one. The amqp-client library now supports automatic connection and topology recovery; and, since 4.0.0, it is enabled by default. While Spring AMQP is compatible with the client recovery logic, it's generally not necessary to use it; in fact, you may recover faster when relying on Spring AMQP's recovery, especially on the producer side, when a RabbitTemplate has a RetryTemplate.

If you get this exception, consider disabling the client auto recovery. Spring AMQP disables it by default, unless you configure the underlying rabbit connection factory yourself.

Since:
2.0
Author:
Gary Russell
See Also: