I will close this discussion because there was no error in smack 4.2.0-alpha1.
The problem happened because I have commented out the following line because of compile error.
I have enabled it again.
//builder.setServiceName(mServiceName);
For source tracing, I will follow your guide. (Android ADT + MavenToAndroidAnt script)
And finally I have a question. Can you guide how to debug not-authorized (MD5) problem ?
[Situation]
-
Now I can connect & login to the open fire server only with PLAIN Mechanism. (Smack 4.1.0 + Android 4.4 SmartPhone)
(I have disabled DIGEST-MD5 Mechanism). //SASLAuthentication.blacklistSASLMechanism(“DIGEST-MD5”);
-
If I remove DIGEST-MD5 from blacklist, login fails with the following logs.
D/SMACK﹕ SENT (0): =
D/SMACK﹕ RECV (0): cmVhbG09ImJsdWVza3ktc3I3MHMiLG5vbmNlPS IvbUpHbDVZZUZ4R3BPSC9jT3JlbWl2bmZpV3R2SmxJSktLNHFTOHN5Iixxb3A9ImF1dGgiLGNoYXJ
zZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz
D/SMACK﹕ SENT (0): dXNlcm5hbWU9InNoaW1oczEiLHJlYWxtPSIxOT IuMTY4LjIxOS4xOTMiLG5vbmNlPSIvbUpHbDVZZUZ4R3BPSC9jT3JlbWl2bmZpV3R2SmxJSktLNHFTO
HN5Iixjbm9uY2U9Ijc5clF2UVVKRm1pNmdZY3ZHMHNZODFhaENxV2tuUTZWIixuYz0wMDAwMDAwMSxx b3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwLzE5Mi4xNjguMjE5LjE5MyIscmVzcG9uc2U9ZGU3MjA2OWQz Y2Q0Mjg3NDE3MWJiZjk
3MDkyNGI2YTAsY2hhcnNldD11dGYtOA==
D/SMACK﹕ RECV (0):
- sample code
XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder();
builder.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
builder.setHost(mServiceName);
builder.setResource(“Phone”);
builder.setPort(5222);
builder.setUsernameAndPassword(mUsername, mPassword);
builder.setDebuggerEnabled(true);
builder.setServiceName(mServiceName);
mConnection = new XMPPTCPConnection(builder.build());
mConnection.connect();
mConnection.login();