[rabbitmq-discuss] Channel Error - 404

Matthias Radestock matthias at lshift.net
Mon Feb 2 08:12:03 GMT 2009


Robbie,

Robbie Clutton wrote:
> 		channel.exchangeDeclare("allqueues", "direct");
> ...
> 		channel.basicPublish("all queues", "routingKey", null, messageBodyBytes);

[...]

>  com.rabbitmq.client.ShutdownSignalException (channel error; reason:
> {#method<channel.close>(reply-code=404,reply-text=NOT_FOUND - no
> exchange 'all queues' in vhost '/',class-id=50,method-id=20),null,""})

The server tells you exactly what is wrong :)

You are declaring an exchange "allqueues" but try to publish to an 
exchange "all queues".


Matthias.




More information about the rabbitmq-discuss mailing list