1 Check Jid
XMPP authentication problem, is generally related to Jid, so to solve such problems, the first choice is to analyze the Xmppstream Jid, the client after connecting with the server, the socket is bound to the port, to handle the round-trip data with the server, authentication is one of them. And, Often we are connected to the server, in order to be simple, often use localhost or 127.0.0.1来 as part of the domain name, this time to pay particular attention to, because when using spark or other client program login, using such a domain name login server is no problem, But in the code to deal with special care, be sure to in the back of the server, confirm the domain name unification:
2 Restart OpenFire
When resetting the administrator password, the server will be automatically modified, I would like to re-modify the server name, such as im.dzq.cn, and to restart OpenFire if this can not be authenticated error, at this time spark can log in, the emulator cannot log in,
Common XMPP errors: (<failure xmlns= "URN:IETF:PARAMS:XML:NS:XMPP-SASL" ><not-autho