<div dir="ltr">Hi,�<div>Thanks for your response.�</div><div><br></div><div>I followed your advice and here are my results.</div><div>�I see myself in the connection list when I invoke a connection from a computer that gets the exception. I see it with &quot;starting&quot; �status and instantly it disappears. (I use new exchange name and no exchange is created)</div>
<div><br></div><div>I tried to follow your advice about the tracer but i didn&#39;t find enough info about the file runjava.bat in 2.3.1 (it exists only in the 1.7.0 package. not the 2.3.1.)</div><div><br></div><div>it happens from almost half of the servers. not only the ones with the NAT.�</div>
<div>thanks.<br><br><div class="gmail_quote">On Mon, Feb 28, 2011 at 5:34 PM, Emile Joubert <span dir="ltr">&lt;<a href="mailto:emile@rabbitmq.com">emile@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
There is no reason why an AMQP connection won&#39;t work over NAT. This is equally for version 1.7.0 and 2.3.1. It is likely that the cause for this error is at the network layer.<br>
<br>
Does the broker logfile contain any other relevant messages other than the one about the abrupt disconnection?<br>
<br>
Can you get &quot;rabbitmqctl list_connections&quot; on the broker to list the connection from the client at any time?<br>
Are you able to establish an AMQP channel and issue the basicConsume(), or does the error occur earlier during connection establishment?<br>
<br>
Do you have any way of checking the state of the connection on the NAT device?<br>
<br>
Establishing the AMQP connection via the AMQP Tracer ( <a href="http://www.rabbitmq.com/javadoc/com/rabbitmq/tools/Tracer.html" target="_blank">http://www.rabbitmq.com/javadoc/com/rabbitmq/tools/Tracer.html</a> ) might also provide useful diagnostic information.<br>
<font color="#888888">
<br>
<br>
<br>
-Emile</font><div class="im"><br>
<br>
<br>
<br>
<br>
On 27/02/11 13:06, mysurf mail wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi ,<br>
I am writing a new mail because my last issue was solved .<br>
It is just that on a certain computer my application stopped working.<br>
So it is a new issue and I will explain and paste the exception below.<br>
<br>
Basically, I did three things :<br>
1. I upgraded from 1.7.0 to 2.3.1 (installed a new erlang also)<br>
2. I upgraded the client jars<br>
3. changed the protocol to ack = true;<br>
<br>
channel.basicConsume(queueName, true, queueingConsumer);<br>
<br>
well, that certain computer is behind a firewall, and has a NAT (Network<br>
Address Translation ).<br>
It did work prior to the upgrade with the NAT (mySQL also handles it<br>
pretty well).<br>
with the same ports.<br>
Maybe it is the bidirectional channel (since I added acking? I dont<br>
think so...).<br>
<br>
what I can see is that.<br>
when the client tries to connect it writes in the logs<br>
<br>
Connection closed abruptly<br>
<br>
And now, behold, the exception :<br>
</blockquote>
<br></div>
[...]<br>
</blockquote></div><br></div></div>