<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 11:39 PM, Michael Klishin <span dir="ltr">&lt;<a href="mailto:michael.s.klishin@gmail.com" target="_blank">michael.s.klishin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im"><br></div></div></div><div class="gmail_extra">
<br></div><div class="gmail_extra">I assume AMQP_RESPONSE_SERVER_EXCEPTION indicates</div><div class="gmail_extra">a channel exception. You need to investigate what exactly causes</div>

<div class="gmail_extra">it (see the log) or use a new channel.</div></div></blockquote><div><br></div><div>Not quite. In rabbitmq-c when you&#39;re looking at a amqp_rpc_reply_t structure, returned from a function like amqp_login, or when amqp_queue_declare() returns NULL and you use amqp_get_rpc_reply() to get the last error).</div>
<div><br></div><div>First examine the reply_type. �</div><div>�* AMQP_RESPONSE_NORMAL means the operation completed successfully</div><div>�* AMQP_RESPONSE_SERVER_EXCEPTION means either a channel or a connection exception has occurred. You should then examine the <a href="http://reply.id">reply.id</a>. �</div>
<div>� �- A AMQP_CHANNEL_CLOSE_METHOD means a channel exception has occurred, you can cast the reply.decoded to amqp_channel_close_t* to get details on why the channel was closed. �Once a channel has been closed, it should not be used without reopening the channel with amqp_channel_open().</div>
<div>� �- A AMQP_CONNECTION_CLOSE_METHOD means a connection exception has occurred. You can cast the reply.decoded to amqp_connection_close_t* to get details on why the broker closed the connection. �Once the connection has been closed the entire connection should be destroyed and a new one created before continuing.</div>
<div>�* AMQP_RESPONSE_LIBRARY_EXCEPTION means something occurred in the library (usually it means a socket error has occurred). You should examine library_error and compare it against the amqp_status_enum values.</div><div>
<br></div><div>HTH</div><div>-Alan</div></div></div></div>