hallo all,

I was testing the amqp ruby gem against activemq.amqp.

Local gem version:
Successfully installed amq-protocol-1.2.0
Successfully installed amq-client-0.9.12
Successfully installed amqp-0.9.9
(Debian GNU/Linux, MRI ruby 1.9.3p0)

The simple ruby halloworld script
(http://rubyamqp.info/articles/getting_started/#hello_world_example) fails
with the following activemq log:

[ActiveMQ Transport: tcp:///127.0.0.1:53292@5672] [DEBUG] [2013-02-22
09:00:27,375] o.a.a.t.a.AmqpProtocolConverter: Exception detail
org.apache.activemq.transport.amqp.AmqpProtocolException: Could not decode
AMQP frame: hex: 414d515000000901
        at
org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:161)
[activemq-amqp-5.8.0.jar:5.8.0]
        at
org.apache.activemq.transport.amqp.AmqpProtocolConverter.onAMQPData(AmqpProtocolConverter.java:151)
[activemq-amqp-5.8.0.jar:5.8.0]
        at
org.apache.activemq.transport.amqp.AmqpTransportFilter.onCommand(AmqpTransportFilter.java:94)
[activemq-amqp-5.8.0.jar:5.8.0]
        at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
[activemq-client-5.8.0.jar:5.8.0]
        at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
[activemq-client-5.8.0.jar:5.8.0]
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
[activemq-client-5.8.0.jar:5.8.0]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_06]
Caused by: org.apache.qpid.proton.engine.TransportException: AMQP header
mismatch value 0, expecting 1
        at
org.apache.qpid.proton.engine.impl.FrameParser.input(FrameParser.java:441)
~[proton-0.3.0-fuse-2.jar:0.3.0-fuse-2]
        at
org.apache.qpid.proton.engine.impl.TransportImpl.input(TransportImpl.java:165)
~[proton-0.3.0-fuse-2.jar:0.3.0-fuse-2]
        at
org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:158)
[activemq-amqp-5.8.0.jar:5.8.0]
        ... 6 common frames omitted

Is maybe a protocol mismatch? Which version of amqp protocol does
activemq-amqp honour?

Thank you,

Francesco



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-tp4663920.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to