AMQP传输帧被拒绝

发布于 2025-01-17 05:11:51 字数 285 浏览 1 评论 0 原文

我目前正在尝试通过 AMQP 1.0 将我的驱动程序开发为 ActiveMQ 我可以成功打开、开始会话、附加此会话的链接,但我的第一个传输帧因“错误解码”而被拒绝,尽管wireshark将其视为有效帧,如屏幕截图 传输帧的wireshark视图

返回的帧是一个带有错误条件的关闭:amqp:decode-error, 说明无法解码 AMQP 帧:十六进制:...

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情归归情 2025-01-24 05:11:51

从我在编码中看到的情况来看,您已经围绕一条指示为 format = 0 的消息创建了一个传输,它需要一个 AmqpValue、N 个 AmqpSequence 部分或 N 个数据部分的正文部分。您的编码似乎将二进制编码为主体部分,这是不正确的,这可能是代理触发异常的地方。

该规范很好地概述了这一要求
http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#section-message-format

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文