[rabbitmq-discuss] HelloWorld example : Connection refused to localhost

laurent bernabe laurent.bernabe at gmail.com
Thu May 2 16:46:53 BST 2013

Hello everyone,

I can't run the HelloWorld tutorial in my computer.

I've downloaded rabbitmq-java-client-bin-3.1.0.
Then in Eclipse Juno for Java EE developpers (Release 2) in my Ubuntu 12.10
64 bits I :

   - imported the jars {commons-cli-1.1.jar, commons-io-1.2.jar,
   rabbitmq-client.jar} and added them to the build path (so they were in my
   project class path)
   - added the Send and Recv sources codes

But when I ran the Send class, I got a ConnectException.
I've attached the exception trace as well as the Send/Recv source file (in
order to match the line numbers given in the stack trace).

So, did I missed something or did I misunderstood a configuration setup ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130502/d7c62dd4/attachment.htm>
-------------- next part --------------
Exception in thread "main" java.net.ConnectException: Connexion refusée
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
	at java.net.Socket.connect(Socket.java:579)
	at com.rabbitmq.client.ConnectionFactory.createFrameHandler(ConnectionFactory.java:445)
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:504)
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:533)
	at Send.main(Send.java:14)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Recv.java
Type: application/octet-stream
Size: 986 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130502/d7c62dd4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Send.java
Type: application/octet-stream
Size: 723 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130502/d7c62dd4/attachment-0001.obj>

More information about the rabbitmq-discuss mailing list