I currently am having some issues tying into the connection auto-recover process. Currently I have a client that connects to Rabbit, on the server side the user for Rabbit gets removed while I have a consumer(s) connected. When this occurs, my java client is supposed to re-register with the server but I'm having a heck of a time figuring out how to trap the AuthenticationFailureException.
2018-10-23 15:26:45.322 [AMQP Connection
192.168.120.60:5671] ERROR ForgivingExceptionHandler.log - Caught an exception during connection recovery!
com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:351)
at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:64)
at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.recoverConnection(AutorecoveringConnection.java:550)
at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.beginAutomaticRecovery(AutorecoveringConnection.java:512)
at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.access$000(AutorecoveringConnection.java:53)
at com.rabbitmq.client.impl.recovery.AutorecoveringConnection$2.recoveryCanBegin(AutorecoveringConnection.java:453)
at com.rabbitmq.client.impl.AMQConnection.notifyRecoveryCanBeginListeners(AMQConnection.java:702)
at com.rabbitmq.client.impl.AMQConnection.doFinalShutdown(AMQConnection.java:696)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:586)