<!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 "server" 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 > sol1.1430: P 1:9(8) ack 1 win 65535</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0000: 0000 0c07 ac00 5c26 0a17 22b6 0800 4500 ......\&.."...E.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0010: 0030 ed44 4000 8006 0519 967a 6828 cf29 .0.D@......zh(.)</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0020: 3a9e 12dc 0596 3ca6 e554 29de a04e 5018 :.....<..T)..NP.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0030: ffff 0722 0000 414d 5150 0000 0901 ..."..AMQP....</FONT>
<BR><FONT SIZE=2 FACE="Verdana">14:47:41.380038 IP sol1.1430 > mywindows.4828: . ack 9 win 49640</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0000: 5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500 \&..".....K...E.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0010: 0028 b226 4000 3906 873f cf29 3a9e 967a .(.&@.9..?.):..z</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0020: 6828 0596 12dc 29de a04e 3ca6 e55c 5010 h(....)..N<..\P.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0030: c1e8 e0df 0000 0000 0000 0000 ............</FONT>
<BR><FONT SIZE=2 FACE="Verdana">14:47:41.380974 IP sol1.1430 > mywindows.4828: P 1:9(8) ack 9 win 49640</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0000: 5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500 \&..".....K...E.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0010: 0030 b227 4000 3906 8736 cf29 3a9e 967a .0.'@.9..6.):..z</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0020: 6828 0596 12dc 29de a04e 3ca6 e55c 5018 h(....)..N<..\P.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0030: c1e8 4531 0000 414d 5150 0000 0901 ..E1..AMQP....</FONT>
<BR><FONT SIZE=2 FACE="Verdana">14:47:41.382807 IP mywindows.4828 > sol1.1430: F 9:9(0) ack 9 win 65527</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0000: 0000 0c07 ac00 5c26 0a17 22b6 0800 4500 ......\&.."...E.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0010: 0028 ed45 4000 8006 0520 967a 6828 cf29 .(.E@......zh(.)</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0020: 3a9e 12dc 0596 3ca6 e55c 29de a056 5011 :.....<..\)..VP.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0030: fff7 a2c7 0000 ......</FONT>
<BR><FONT SIZE=2 FACE="Verdana">14:47:41.384136 IP sol1.1430 > mywindows.4828: . ack 10 win 49640</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0000: 5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500 \&..".....K...E.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0010: 0028 b229 4000 3906 873c cf29 3a9e 967a .(.)@.9..<.):..z</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0020: 6828 0596 12dc 29de a056 3ca6 e55d 5010 h(....)..V<..]P.</FONT>
<BR> <FONT SIZE=2 FACE="Verdana">0x0030: c1e8 e0d6 0000 0000 0000 0000 ............</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> </P>
<P><FONT face=Verdana size=1></FONT> </P>
<P><FONT face=Verdana size=1>"This e-mail and any attachments to it (the
"Communication") is, unless otherwise stated, confidential, 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>