powered by Jive Software

No response from server on login

I am attempting to write a Java/XMPP soap transport for XFire, but am running into some problems when trying to login. For whatever reason, I seem to get this about 90% of the time:

No response from the server.:

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:276)

at org.codehaus.xfire.xmpp.TransportTest.setUp(TransportTest.java:40)

Any ideas on why that might be?

My code looks like this:

XMPPConnection.DEBUG_ENABLED = true;

conn = new XMPPConnection(server);

conn.login(username, password, “Echo”);

XFirePacketListener listener = new XFirePacketListener(getXFire(), conn);

conn.addPacketListener(listener, new ToContainsFilter(""));

Hey Dan,

Possible reasons are:

  1. The connection is slow or the server is overloaded (slow?)

  2. The server has a bug so the server is not sending a reply to the client

Smack allows you to configure the packet reply timeout so you can solve the first problem. Take a look at the SmackConfiguration class. You can change the value programmatically or you can modify the default value which is stored in META-INF/smack-config.xml.

If the problem is reason 2 you can check the error log of the server and report the bug to the server developers.

Regards,

– Gato

It must have been #1. Maybe because I’'m using jabber.org? Who knows. Thanks!