I am trying to build an android app using smack 4.1 beta1. When I try to login I am getting the following exception in the android app.
2381-2381/sample.app W/SASLAuthentication﹕ Server did not report any SASL mechanisms
2381-2381/sample.app W/System.err﹕ org.jivesoftware.smack.SmackException: No non-anonymous SASL authentication mechanism available
2381-2381/sample.app W/System.err﹕ at org.jivesoftware.smack.tcp.XMPPTCPConnection.loginNonAnonymously(XMPPTCPConnect ion.java:332)
2381-2381/sample.app W/System.err﹕ at org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java :445)
2381-2381/sample.app W/System.err﹕ at org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java :422)
2381-2381/sample.app W/System.err﹕ at sample.app.service.MessageService.onCreate(MessageService.java:107)
2381-2381/sample.app W/System.err﹕ at android.app.ActivityThread.handleCreateService(ActivityThread.java:2731)
2381-2381/sample.app W/System.err﹕ at android.app.ActivityThread.access$1800(ActivityThread.java:144)
2381-2381/sample.app W/System.err﹕ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)
2381-2381/sample.app W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:102)
2381-2381/sample.app W/System.err﹕ at android.os.Looper.loop(Looper.java:135)
2381-2381/sample.app W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5221)
2381-2381/sample.app W/System.err﹕ at java.lang.reflect.Method.invoke(Native Method)
2381-2381/sample.app W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:372)
2381-2381/sample.app W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
2381-2381/sample.app W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
I tried listing the registered SASL mechanisms using SASLAuthentication.getRegisterdSASLMechanisms() but the list is empty.
When I try this in a stand alone program it works and I get a list of registered SASL mechanisms aswell