morellon/stomp — Issue #27: Windows/port bug?
Author: MaartenG
Created: 2012-02-03 01:50:49+00:00
State: open

I'm trying out Stomp on a Windows machine, where out of the box ActiveMQ starts on port 8161. Stomp will refuse to connect:

irb(main):009:0> client = Stomp::Client.new "stomp://localhost:8161"
TypeError: can't convert nil into String

If I try an incorrect port number instead, like 8162, I get this

irb(main):008:0> client = Stomp::Client.new "stomp://localhost:8162"
Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)

I also see no connection attempt appear in the ActiveMQ log on the try with the correct port. So what's happening in trying to connect to the correct host/port that it responds with a nil error?