[rabbitmq-discuss] New Open source AMQP implementation, problems with integrating using different langauges

Robin Harvey harvey.robin at gmail.com
Tue Feb 8 09:21:29 GMT 2011


Hi,

The situation Finn describes where having no message delivery flags sounds
like a bug in amqphp.  Are the content-type / content-encoding parameters
required by Amqp / RabbitMQ?

Thanks,
--Robin

On Tue, Feb 8, 2011 at 2:08 AM, finn colman <finncolman at yahoo.co.nz> wrote:

> I have found the solution to my problem.
> I set found out that the flags were the content-type and content-encoding.
> When
> I set these properties in the python code then I could consumer the message
> on
> the PHP side without an exception being thrown.
>
>
>
>
> ----- Original Message ----
> From: finn colman <finncolman at yahoo.co.nz>
> To: rabbitmq-discuss at lists.rabbitmq.com
> Sent: Tue, 8 February, 2011 12:17:08 PM
> Subject: New Open source AMQP implementation, problems with integrating
> using
> different langauges
>
> Hi there.
> I have a python program that talks to a rabbit MQ server using its own
> library.
> On my end I am running Robin's AMQP PHP
> library,https://github.com/BraveSirRobin/amqphp to connect to the Rabbit
> MQ
> server. I can submit a message to the queue and the python side can read
> it, but
>
> if the python side submits a message to the queue and the PHP side tries to
> consume it I am getting an Exception thrown from inside amqp.wire.php:
> "Unexpected message property flags".
> This is happening because the strlen($binFlags) is evaluating to 0 in this
> case.
>
> If I run it using PHP submitted messages then it correctly evaliuates to a
> length of 16.
> The binary flags is 1100000000000000(49152) for a PHP suibmitted message
> read
> off the queue, but it is 0 for the message read off the queue that was put
> there
>
> by python.
> What is causing this? Also what do these flags really represent.
> As a temporary work around I have managed to get the code to read the
> message by
>
> simply commenting out these three lines of code that check this binary
> flags
> length.
> Thanks.
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110208/7f422539/attachment.htm>


More information about the rabbitmq-discuss mailing list