Hi,
I think Spark is so cool,so I try to write an other imitational IM client using the Smack api(2.2.0),and use the wildfire 2.6.1 as server.Now I use the swt(an java language which write by the eclipse team) to write a login interface,but if I key in the right usrname and wrong password first,Smack tell me:SASL authentication failed: ,but the second time I key in the right usename and rihgt password,it tell me the same error:SASL authentication failed,and I can not login again no matter what I try more times,Smack always tell me the same error.so I want to now why,can you help me ?Thank you very much
The code is:[/b]
try{
XMPPConnection con = new XMPPConnection(“XXXXX”);
con.login(“benson”, “XXXXX”);
}
catch(XMPPException e)
{
e.printStackTrace();
}
The error is:[/b]
SASL authentication failed:
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 205)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:410)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:374)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:355)
Message was edited by: benson