activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: AMQP version: AMQP header mismatch value 0, expecting 1
Date Sun, 24 Feb 2013 18:45:51 GMT
Looks like the Ruby gem you're using implements 0.9.1 version of AMQP spec.
ActiveMQ implements v1.0 of the AMQP spec and per the AMQP working group,
backward compatibility between 1.0 and previous versions cannot be assumed
(and in practice is not backward compatible).
If you can find a Ruby client for AMQP 1.0 can you give it a try? Or maybe
you're better off with using STOMP.


On Fri, Feb 22, 2013 at 1:09 AM, francesco <francesco.malvezzi@unimore.it>wrote:

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



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message