通过STOMP连接到rabbitmq时处理错误

发布于 2024-11-18 23:46:52 字数 2093 浏览 3 评论 0原文

我尝试使用 telnet 通过 STOMP 协议连接到 RabbitMQ(v2.5.1),并收到以下错误:

  #telnet localhost 61613

  Trying ::1...
  Connected to localhost.localdomain.
  Escape character is '^]'.
  CONNECT
  login:guest
  passcode:guest

  ^@  
  ERROR
  message:Processing error
  content-type:text/plain
  version:1.0,1.1
  content-length:17


  Processing error

SASL 日志给出:

=INFO REPORT==== 7-Jul-2011::11:43:41 ===
accepted TCP connection on [::]:61613 from [::1]:33387

=INFO REPORT==== 7-Jul-2011::11:43:41 ===
starting STOMP connection  from ::1:33387

=ERROR REPORT==== 7-Jul-2011::11:43:54 ===
STOMP error frame sent:
Message: "Processing error"
Detail: "Processing error\n"
Server private detail: {{case_clause,
                            {amqp_params_direct,>,>,
                                rabbit@skynet,
                                {adapter_info,
                                    {0,0,0,0,0,0,0,1},
                                    61613,
                                    {0,0,0,0,0,0,0,1},
                                    33387,unknown,
                                    {'STOMP',"1.0"},
                                    [{ssl,false}]},
                                []}},
                        [{amqp_connection,start,2},
                         {rabbit_stomp_processor,do_login,7},
                         {rabbit_stomp_processor,process_request,3},
                         {gen_server2,handle_msg,2},
                         {proc_lib,wake_up,3}]}

兔子节点上运行有应用程序:

Eshell V5.7.4  (abort with ^G)
(rabbit@skynet)1> application:which_applications().
[{amqp_client,"RabbitMQ AMQP Client","2.3.1"},
 {rabbitmq_stomp,"Embedded Rabbit Stomp Adapter","2.5.1"},
 {rabbit,"RabbitMQ","2.5.1"},
 {mnesia,"MNESIA  CXC 138 12","4.4.12"},
 {os_mon,"CPO  CXC 138 46","2.2.4"},
 {sasl,"SASL  CXC 138 11","2.1.8"},
 {stdlib,"ERTS  CXC 138 10","1.16.4"},
 {kernel,"ERTS  CXC 138 10","2.13.4"}]

当我尝试通过 python stomp (http://code .google.com/p/stomppy) 或 php stomp (http://pecl.php.net/package/stomp) 模块。

提前致谢!

I tried to connect to RabbitMQ(v2.5.1) via STOMP protocol using telnet and got following error:

  #telnet localhost 61613

  Trying ::1...
  Connected to localhost.localdomain.
  Escape character is '^]'.
  CONNECT
  login:guest
  passcode:guest

  ^@  
  ERROR
  message:Processing error
  content-type:text/plain
  version:1.0,1.1
  content-length:17


  Processing error

SASL log gives:

=INFO REPORT==== 7-Jul-2011::11:43:41 ===
accepted TCP connection on [::]:61613 from [::1]:33387

=INFO REPORT==== 7-Jul-2011::11:43:41 ===
starting STOMP connection  from ::1:33387

=ERROR REPORT==== 7-Jul-2011::11:43:54 ===
STOMP error frame sent:
Message: "Processing error"
Detail: "Processing error\n"
Server private detail: {{case_clause,
                            {amqp_params_direct,>,>,
                                rabbit@skynet,
                                {adapter_info,
                                    {0,0,0,0,0,0,0,1},
                                    61613,
                                    {0,0,0,0,0,0,0,1},
                                    33387,unknown,
                                    {'STOMP',"1.0"},
                                    [{ssl,false}]},
                                []}},
                        [{amqp_connection,start,2},
                         {rabbit_stomp_processor,do_login,7},
                         {rabbit_stomp_processor,process_request,3},
                         {gen_server2,handle_msg,2},
                         {proc_lib,wake_up,3}]}

There are applications running on rabbit node:

Eshell V5.7.4  (abort with ^G)
(rabbit@skynet)1> application:which_applications().
[{amqp_client,"RabbitMQ AMQP Client","2.3.1"},
 {rabbitmq_stomp,"Embedded Rabbit Stomp Adapter","2.5.1"},
 {rabbit,"RabbitMQ","2.5.1"},
 {mnesia,"MNESIA  CXC 138 12","4.4.12"},
 {os_mon,"CPO  CXC 138 46","2.2.4"},
 {sasl,"SASL  CXC 138 11","2.1.8"},
 {stdlib,"ERTS  CXC 138 10","1.16.4"},
 {kernel,"ERTS  CXC 138 10","2.13.4"}]

Same error occurs when I try to connect via python stomp (http://code.google.com/p/stomppy) or php stomp (http://pecl.php.net/package/stomp) modules.

Thanks in advance!

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

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

发布评论

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

评论(1

梦途 2024-11-25 23:46:52

您使用的是 Erlang 客户端的 2.3.1 版本和 STOMP 插件的 2.5.1 版本。您需要运行两者的相同版本。您可以下载 Erlang 客户端的 2.5.1 此处

You're using version 2.3.1 of the Erlang Client and version 2.5.1 of the STOMP plugin. You need to run the same version of both. You can download 2.5.1 of the Erlang Client here.

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