Below, please find the stack trace.  I've not bothered to resolve the two
warning messages yet. Also, the connect call I'm using is:

con.connect("192.168.100.110", 5672, "", "root", "rootpwd");

Thanks for the help.

**** the trace is below ****

log4j:WARN No appenders could be found for logger
(org.apache.qpidity.nclient.Cl
ient).
log4j:WARN Please initialize the log4j system properly.
Error connecting to broker
org.apache.mina.common.RuntimeIOException: Failed to get the session.
        at
org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnec
tFuture.java:69)
        at
org.apache.qpidity.transport.network.mina.MinaHandler.connect(MinaHandler.ja
va:216)
        at
org.apache.qpidity.transport.network.mina.MinaHandler.connect(MinaHandler.ja
va:198)
        at
org.apache.qpidity.transport.network.mina.MinaHandler.connect(MinaHandler.ja
va:251)
        at org.apache.qpidity.nclient.Client.connect(Client.java:164)
        at DeclareQueue.main(DeclareQueue.java:21)
Caused by: java.net.ConnectException: Connection timed out: no further
information
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
        at
org.apache.mina.transport.socket.nio.SocketConnector.processSessions(SocketC
onnector.java:305)
        at
org.apache.mina.transport.socket.nio.SocketConnector.access$900(SocketConnec
tor.java:52)
        at
org.apache.mina.transport.socket.nio.SocketConnector$Worker.run(SocketConnec
tor.java:414)
        at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:
43)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "main" java.lang.NullPointerException
        at org.apache.qpidity.nclient.Client.createSession(Client.java:258)
        at DeclareQueue.main(DeclareQueue.java:30)

Kamran Saadatjoo

-----Original Message-----
From: Robert Greig [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 11, 2008 6:02 PM
To: [email protected]
Subject: Re: Communication problem between M3 Broker and AMQP client

2008/5/11 Kamran Saadatjoo <[EMAIL PROTECTED]>:

> Thanks Robert: If you could, please tell me how I can find out the virtual
> host name of a C++ broker. I have one running on a Linux system and I'm
> trying to connect to it from a Windows Java client (the DeclareQueue.java
> example). The client terminates after about 20 or so seconds of wait with
> "Error connecting to broker" which is outputted in the "catch" section of
> connection.  I've used an empty string for the virtual host name, and used
> my root user and password to connect with. I think the problem may be that
I
> don't have the correct virtual host name.  Would you know what I'm
missing?

Can you post the stack trace from the java client?

Robert

Internal Virus Database is out-of-date.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.13/1375 - Release Date: 4/12/2008
11:32 AM
 

Internal Virus Database is out-of-date.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.13/1375 - Release Date: 4/12/2008
11:32 AM
 

Reply via email to