powered by Jive Software

Connect problem and SASL authentication failed

I develop program in the company, whenever I run the program ,there is a fault:

MPPError connecting to talk.google.com:5222.: (502)

– caused by: java.net.ConnectException: Connection timed out: connect

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:281)

at org.jivesoftware.smack.XMPPConnection.

When I go back home,at least I can connect to the server but there is another problem:SASL authentication failed

I think my company may lock the port ,so I can’'t connect to the server.

But why the problem "SASL authentication failed " exists and how to solve it?

How can I connect to server in my office?

PS:my simple code

XMPPConnection connection = new XMPPConnection(“talk.google.com”, 5222, “gmail.com”);


Message was edited by: sqcumt

Nobody help me?