powered by Jive Software

After 6 failed attempts to login "Connection failed" exception

I try to login six times with a false password! By the sixth attempt the login method fires following exception:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:192)

at org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:737)

at org.jivesoftware.smack.XMPPConnection.(XMPPConnection.java:180)

Why have this Exception no error code?

Have you a solution for this problem?


The error comes from the jabber server! This error occures when the max number of attempts of the server is reached.

Is it possible that you catch the error and create an XMPPError for this exception?


Any error messages from the server will be a part of the Exception. Use XMPPException.getXMPPError().



If I use XMPPException.getXMPPError() the XMPPError is null!