Skip to content
Advertisement

AMQP transfer frame refused

I am currently trying to develop my driver to an ActiveMQ via AMQP 1.0 I could successfully open, begin a session, attach links to this session but my first transfer frame is refused with “error decoding” although wireshark sees it as valid frame as shown in screenshot wireshark view of transfer frame

returned frame is a close with Error condition: amqp:decode-error, Description is Could not decode AMQP frame: hex: …

Advertisement

Answer

From what I can see in the encoding you have created a Transfer around a message indicated to be format = 0 which requires a body section of, one AmqpValue, N AmqpSequence sections or N Data sections. Your encoding seems to encode a Binary as the body section which is incorrect and this is probably where the broker fires off the exception.

The specification outlines this requirement pretty well http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#section-message-format

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement