<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>AMQP protocol header mismatch</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT SIZE=2 FACE="Verdana">I have just installed the latest .NET and Java RabbitMQ clients on Windows XP to test against a socket program on a Solaris box. The socket program simply echoes back what it received. My reading of the AMQP standards is that the first TCP packet received after the socket connects is the AMQP protocol header, and if the &quot;server&quot; accepts the AMQP connection then it should echo back the same AMQP protocol header as a sign that it can support the protocol version. And this is what I see with a tcpdump (taken at the Windows end i.e. WinDump):</FONT></P>

<P><FONT SIZE=2 FACE="Verdana">14:47:41.377235 IP mywindows.4828 &gt; sol1.1430: P 1:9(8) ack 1 win 65535</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0000:&nbsp; 0000 0c07 ac00 5c26 0a17 22b6 0800 4500&nbsp; ......\&amp;..&quot;...E.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0010:&nbsp; 0030 ed44 4000 8006 0519 967a 6828 cf29&nbsp; .0.D@......zh(.)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0020:&nbsp; 3a9e 12dc 0596 3ca6 e554 29de a04e 5018&nbsp; :.....&lt;..T)..NP.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0030:&nbsp; ffff 0722 0000 414d 5150 0000 0901&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...&quot;..AMQP....</FONT>

<BR><FONT SIZE=2 FACE="Verdana">14:47:41.380038 IP sol1.1430 &gt; mywindows.4828: . ack 9 win 49640</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0000:&nbsp; 5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500&nbsp; \&amp;..&quot;.....K...E.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0010:&nbsp; 0028 b226 4000 3906 873f cf29 3a9e 967a&nbsp; .(.&amp;@.9..?.):..z</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0020:&nbsp; 6828 0596 12dc 29de a04e 3ca6 e55c 5010&nbsp; h(....)..N&lt;..\P.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0030:&nbsp; c1e8 e0df 0000 0000 0000 0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ............</FONT>

<BR><FONT SIZE=2 FACE="Verdana">14:47:41.380974 IP sol1.1430 &gt; mywindows.4828: P 1:9(8) ack 9 win 49640</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0000:&nbsp; 5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500&nbsp; \&amp;..&quot;.....K...E.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0010:&nbsp; 0030 b227 4000 3906 8736 cf29 3a9e 967a&nbsp; .0.'@.9..6.):..z</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0020:&nbsp; 6828 0596 12dc 29de a04e 3ca6 e55c 5018&nbsp; h(....)..N&lt;..\P.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0030:&nbsp; c1e8 4531 0000 414d 5150 0000 0901&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ..E1..AMQP....</FONT>

<BR><FONT SIZE=2 FACE="Verdana">14:47:41.382807 IP mywindows.4828 &gt; sol1.1430: F 9:9(0) ack 9 win 65527</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0000:&nbsp; 0000 0c07 ac00 5c26 0a17 22b6 0800 4500&nbsp; ......\&amp;..&quot;...E.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0010:&nbsp; 0028 ed45 4000 8006 0520 967a 6828 cf29&nbsp; .(.E@......zh(.)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0020:&nbsp; 3a9e 12dc 0596 3ca6 e55c 29de a056 5011&nbsp; :.....&lt;..\)..VP.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0030:&nbsp; fff7 a2c7 0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ......</FONT>

<BR><FONT SIZE=2 FACE="Verdana">14:47:41.384136 IP sol1.1430 &gt; mywindows.4828: . ack 10 win 49640</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0000:&nbsp; 5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500&nbsp; \&amp;..&quot;.....K...E.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0010:&nbsp; 0028 b229 4000 3906 873c cf29 3a9e 967a&nbsp; .(.)@.9..&lt;.):..z</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0020:&nbsp; 6828 0596 12dc 29de a056 3ca6 e55d 5010&nbsp; h(....)..V&lt;..]P.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Verdana">0x0030:&nbsp; c1e8 e0d6 0000 0000 0000 0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ............</FONT>
</P>

<P><FONT SIZE=2 FACE="Verdana">The problem is that the client is not accepting what it gets back. For example, with the java client (runjava.bat com.rabbitmq.examples.HelloServer sol1 1430) I get:</FONT></P>

<P><FONT SIZE=2 FACE="Verdana">com.rabbitmq.client.ShutdownSignalException: connection error; reason: com.rabbitmq.client.MalformedFrameException: AMQP protocol version mismatch; we are version 0-9-1, server sent signature 0,0,9,1</FONT></P>

<P><FONT SIZE=2 FACE="Verdana">What is wrong with this setup? Thanks ...<B></B></FONT><B></B>
</P>


<SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-AU; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-style: italic">
<P><FONT face=Verdana size=1></FONT>&nbsp;</P>
<P><FONT face=Verdana size=1></FONT>&nbsp;</P>
<P><FONT face=Verdana size=1>"This e-mail and any attachments to it (the 
"Communication") is, unless otherwise stated, confidential,&nbsp; may contain 
copyright material and is for the use only of the intended recipient. If you 
receive the Communication in error, please notify the sender immediately by 
return e-mail, delete the Communication and the return e-mail, and do not read, 
copy, retransmit or otherwise deal with it. Any views expressed in the 
Communication are those of the individual sender only, unless expressly stated 
to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 
522, or any of its related entities including ANZ Bank New Zealand Limited 
(together "ANZ"). ANZ does not accept liability in connection with the integrity 
of or errors in the Communication, computer virus, data corruption, interference 
or delay arising from or in respect of the 
Communication."</FONT></P></SPAN>
</BODY>
</HTML>