i checked the souce code of smack from svn server and wrote a test application, in my test class, i wrote the following code:
//----
XMPPConnection con
= new GoogleTalkConnection();
con.login(“", "”);
//----
But when i run the test application, i get an error says that :
java.lang.ClassCastException
at org.jivesoftware.smack.SASLAuthentication.bindResourceAndEstablishSession(SASLA uthentication.java:299)
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 209)
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)
at JabberTest.main(JabberTest.java:19)
(405)
at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:62)
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 223)
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)
at JabberTest.main(JabberTest.java:19)
//----
debug output show error occur in the "XMPPConnection " line, how to resolve this problem?