[rabbitmq-discuss] Stomp Connector not working in tip against 1.5.5

Nemanja Stefanovic nemik at nemik.net
Wed Jun 3 23:24:50 BST 2009


Gavin,

I had this same issue. Luckily it's easy to take care of. Just edit
src/rabbit_stomp.erl in the stomp adapter (assuming it's from hg tip) and
change
line 364
ChPid = rabbit_channel:start_link(?MODULE, self(), self(), U#user.username,
list_to_binary(VirtualHost)),
to
ChPid = rabbit_channel:start_link(self(), self(), U#user.username,
list_to_binary(VirtualHost)),

Just remove the "?Module" since the start_link function changes in the new
rabbitmq-server version.

-Nemanja

On Wed, Jun 3, 2009 at 5:13 PM, Gavin M. Roy <gmr at myyearbook.com> wrote:

> Hello,
>
> I've been working on troubleshooting Stomp connectivity with RabbitMQ.
>  All of my R&D was on 1.5.3 with rabbitmq-stomp tag rabbitmq_v1_5_3
> and it worked just fine.  I went to setup a production test with
> RabbitMQ 1.5.5 and rabbitmq-stomp tip and it stopped working.
>
> Here's the error output:
>
> =ERROR REPORT==== 3-Jun-2009::18:06:44 ===
> STOMP error frame sent:
> Message: "Processing error"
> Detail: "Processing error\n"
> Server private detail: {undef,
>                           [{rabbit_channel,start_link,
>
>  [rabbit_stomp,<0.176.0>,<0.176.0>,<<"guest">>,
>                                 <<"/">>]},
>                            {rabbit_stomp,do_login,4},
>                            {rabbit_stomp,process_frame,3},
>                            {rabbit_stomp,process_received_bytes,2},
>                            {rabbit_stomp,init,1},
>                            {proc_lib,init_p_do_apply,3}]}
>
> If you have any suggestions on how to fix this that would be helpful.
> In addition, I would like to change the default auto-delete from true
> to false:
>
> [root at mq07 src]# hg diff
> diff -r 8216e71f106c src/rabbit_stomp.erl
> --- a/src/rabbit_stomp.erl      Mon Mar 09 13:47:54 2009 +0000
> +++ b/src/rabbit_stomp.erl      Wed Jun 03 18:12:34 2009 -0400
> @@ -534,7 +534,7 @@
>                            passive     = BoolH("passive", false),
>                            durable     = BoolH("durable", false),
>                            exclusive   = BoolH("exclusive", false),
> -                           auto_delete = BoolH("auto-delete", true),
> +                           auto_delete = BoolH("auto-delete", false),
>                            nowait      = true,
>                            arguments   = [longstr_field(K, V) ||
>                                              {"X-Q-" ++ K, V} <- Headers]},
>
> But I wasn't sure if this could cause any problems.  Thoughts?
>
> TIA,
>
> Gavin
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://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/20090603/93045f14/attachment.htm 


More information about the rabbitmq-discuss mailing list