[rabbitmq-discuss] AMQP protocol header mismatch

Earp, Clem Clem.Earp at anz.com
Mon Dec 10 03:54:48 GMT 2012


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):

14:47:41.377235 IP mywindows.4828 > sol1.1430: P 1:9(8) ack 1 win 65535
	0x0000:  0000 0c07 ac00 5c26 0a17 22b6 0800 4500
......\&.."...E.
	0x0010:  0030 ed44 4000 8006 0519 967a 6828 cf29
.0.D at ......zh(.)
	0x0020:  3a9e 12dc 0596 3ca6 e554 29de a04e 5018
:.....<..T)..NP.
	0x0030:  ffff 0722 0000 414d 5150 0000 0901       ..."..AMQP....
14:47:41.380038 IP sol1.1430 > mywindows.4828: . ack 9 win 49640
	0x0000:  5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500
\&..".....K...E.
	0x0010:  0028 b226 4000 3906 873f cf29 3a9e 967a
.(.&@.9..?.):..z
	0x0020:  6828 0596 12dc 29de a04e 3ca6 e55c 5010
h(....)..N<..\P.
	0x0030:  c1e8 e0df 0000 0000 0000 0000            ............
14:47:41.380974 IP sol1.1430 > mywindows.4828: P 1:9(8) ack 9 win 49640
	0x0000:  5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500
\&..".....K...E.
	0x0010:  0030 b227 4000 3906 8736 cf29 3a9e 967a
.0.'@.9..6.):..z
	0x0020:  6828 0596 12dc 29de a04e 3ca6 e55c 5018
h(....)..N<..\P.
	0x0030:  c1e8 4531 0000 414d 5150 0000 0901       ..E1..AMQP....
14:47:41.382807 IP mywindows.4828 > sol1.1430: F 9:9(0) ack 9 win 65527
	0x0000:  0000 0c07 ac00 5c26 0a17 22b6 0800 4500
......\&.."...E.
	0x0010:  0028 ed45 4000 8006 0520 967a 6828 cf29
.(.E at ......zh(.)
	0x0020:  3a9e 12dc 0596 3ca6 e55c 29de a056 5011
:.....<..\)..VP.
	0x0030:  fff7 a2c7 0000                           ......
14:47:41.384136 IP sol1.1430 > mywindows.4828: . ack 10 win 49640
	0x0000:  5c26 0a17 22b6 00d0 00fb 4bfc 0800 4500
\&..".....K...E.
	0x0010:  0028 b229 4000 3906 873c cf29 3a9e 967a
.(.)@.9..<.):..z
	0x0020:  6828 0596 12dc 29de a056 3ca6 e55d 5010
h(....)..V<..]P.
	0x0030:  c1e8 e0d6 0000 0000 0000 0000            ............

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:
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

What is wrong with this setup? Thanks ...

"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."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121210/dfb161e4/attachment.htm>


More information about the rabbitmq-discuss mailing list