Java and Jabber/Smack [closed]
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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