I am trying to code a simple example using the latest version of Smack (3.2.1) to send and receive messages between two accounts.
Connection connection = new XMPPConnection("jabber.org"); connection.connect(); connection.login("username", "password");
But I can't even get past the login part. When I run the above code I get this exception:
Exception in thread "main" SASL authentication DIGEST-MD5 failed: invalid-authzid: at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:337) at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:203) at org.jivesoftware.smack.Connection.login(Connection.java:348) at com.smack.TestSmack.main(TestSmack.java:19)
What is going on here? I am sure my username and password work because I can log in using my IM client.
And can anyone point me to current working Smack examples? This is very frustrating because the documentation and the library seem out of sync.
Thanks-