openfire - 使用 smack 的聊天应用程序

openfire - Chat Application using smack

我正在使用 smack 库创建聊天应用程序。 问题是我无法在 openfire 中连接。它显示异常

 D/SMACK: SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9IndhemlkYSIscmVhbG09ImlzY2hvb2xzeXN0ZW0ubmV0Iixub25jZT0iRC9zTkxxNCtua1FaSHlFM0VVeEtTT3l5ekE1U2dGK21sdWJkLzFoKyIsY25vbmNlPSJpVER4VzAyNjI2Z09NMnQydDMwMFk1TEd4MklkUGJSZSIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9pc2Nob29sc3lzdGVtLm5ldCIscmVzcG9uc2U9NTQ1Y2NlZGJkOTkyMjMwZDg5NmE3YmFhNGI3ZDI1YzQsY2hhcnNldD11dGYtOA==</response>
 03-04 14:11:27.161 23011-23106/D/SMACK: RECV (0): <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
 03-04 14:11:27.163 23011-23068/W/System.err: org.jivesoftware.smack.sasl.SASLErrorException: SASLError using DIGEST-MD5: not-authorized
 03-04 14:11:27.163 23011-23068/W/System.err: at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthentication.java:365)
 03-04 14:11:27.163 23011-23068/W/System.err: at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1033)
 03-04 14:11:27.163 23011-23068/W/System.err: at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access0(XMPPTCPConnection.java:937)
 03-04 14:11:27.163 23011-23068/W/System.err: at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.run(XMPPTCPConnection.java:952)
 03-04 14:11:27.163 23011-23068/W/System.err: at java.lang.Thread.run(Thread.java:818)

Here 是同一个问题。看看。