AnsweredAssumed Answered

SASLErrorException: SASLError using DIGEST-MD5: not-authorized

Question asked by androidBee on Jun 4, 2015

Hi,

I am trying to create android chat app using Openfire server and  smack4.1.

As part of the app i am trying to run the two android emulators in two different machines. But run the openfire server inone local machine.

My Issue is:

machine1 : running the openfire server and emulator. here emulator connected the openfire server and populate the data from open fire server.

 

machine 2: running the emulator and connect the server from machine1. Here established the connection. But When i trying to login i am getting the below error:

org.jivesoftware.smack.sasl.SASLErrorException: SASLError using DIGEST-MD5: not-authorized

org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthenticatio n.java:365)

org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPCo nnection.java:1033)

org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPConn ection.java:937)

org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnectio n.java:952)

java.lang.Thread.run(Thread.java:841)

 

Please help me how to resolve this issue.

 

Thanks in advance...

Outcomes