[rabbitmq-discuss] STOMP Plugin Issues

Joe Williams joe at joetify.com
Tue Feb 3 08:46:26 GMT 2009


I am attempting to work with the STOMP plugin from Ruby and seem to be 
running into an issue that I am unsure how to work around.

When running one of the examples I receive:

> root at ubuntu-810:~# ruby /opt/rabbitmq-stomp/examples/ruby/cb-receiver.rb
> /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:233:in `write': 
> Broken pipe (Errno::EPIPE)
>     from /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:233:in 
> `puts'
>     from /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:233:in 
> `_transmit'
>     from /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:232:in 
> `synchronize'
>     from /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:232:in 
> `_transmit'
>     from /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:220:in 
> `transmit'
>     from /usr/lib/ruby/gems/1.8/gems/stomp-1.0.6/lib/stomp.rb:117:in 
> `subscribe'
>     from /opt/rabbitmq-stomp/examples/ruby/cb-receiver.rb:5

When I use irb to try to connect I get something like this:

> root at ubuntu-810:~# irb
> irb(main):001:0> require ‘rubygems’
> => true
> irb(main):002:0> require ’stomp’
> => true
> irb(main):003:0> conn = Stomp::Connection.open(’guest’, ‘guest’, 
> ‘localhost’)
> => #, @login=”guest”, @reconnectDelay=5, @transmit_semaphore=#, 
> @failure=nil, @port=61613, @connect=#>,\n <<\"/\">>]},\n 
> {rabbit_stomp,do_login,5},\n 
> {rabbit_stomp,process_received_bytes,2},\n {rabbit_stomp,init,1},\n 
> {proc_lib,init_p,5}]}\n”, @headers={”content-type”=>”text/plain”, 
> “content-length”=>”290″, “message”=>”Processing error”}>, 
> @reliable=false, @clientId=nil, @subscriptions={}, @host=”localhost”, 
> @socket_semaphore=#, @socket=#, @passcode=”guest”, @closed=false>
>

The logs state the same.

> root at ubuntu-810:~# tail /var/log/rabbitmq/rabbit.log
> =INFO REPORT==== 3-Feb-2009::02:11:42 ===
> starting STOMP connection <0.3746.0> from 127.0.0.1:59035
>
> =ERROR REPORT==== 3-Feb-2009::02:11:42 ===
> STOMP error frame sent:
> Message: “Processing error”
> Detail: “{undef,[{rabbit_channel,start_link,\n 
> [rabbit_stomp,<0.3746.0>,<0.3746.0>,<<\"guest\">>,\n <<\"/\">>]},\n 
> {rabbit_stomp,do_login,5},\n 
> {rabbit_stomp,process_received_bytes,2},\n {rabbit_stomp,init,1},\n 
> {proc_lib,init_p,5}]}\n”
>
> =INFO REPORT==== 3-Feb-2009::02:11:42 ===
> ending STOMP connection <0.3746.0> from 127.0.0.1:59035
>


Any idea's what I am running into? From what I can tell the ruby stomp 
client seems to be working fine since it works against stompserver 
without issue.

Any advice would be appreciated.

-Joe



-- 
Name: Joseph A. Williams
Email: joe at joetify.com
Blog: http://www.joeandmotorboat.com/





More information about the rabbitmq-discuss mailing list