[rabbitmq-discuss] Alternate Exchange Configuration Issue

Simon MacMullen simon at rabbitmq.com
Mon Jan 24 19:55:01 GMT 2011


On 24/01/2011 7:33PM, Prashant Yadav wrote:
 > Am experiencing trouble when configuring alternate exchange for my
 > broker. I am following the docs present in rabbitmq site. The error am
 > getting is
 >
 > Caused by: com.rabbitmq.client.ShutdownSignalException: channel error;
 > reason:
 > {#method<channel.close>(reply-code=406,reply-text=PRECONDITION_FAILED -
 > inequivalent arg 'alternate-exchange' for exchange 'exchange' in vhost
 > '/': required {longstr,<<97,101>>}, received
 > undefined,class-id=40,method-id=10),null,""}

Did you previously declare the exchange with a different alternate 
exchange? (Or none?) Every declaration of an exchange needs to have the 
same arguments.

BTW I note that your error message references an exchange called 
"exchange" but your code references "my-direct".

Cheers, Simon


More information about the rabbitmq-discuss mailing list