Hi
I have an Openfire server set up that allows users that are created on the admin console to login from my android application. I have created my own users from within my application using accountManager but when I try to connect with them I get the following error. I am new to Smack and Openfire and I have searched for some answers to my problem but I am not sure what it is. Could someone please help me out?
W/System.err: org.jivesoftware.smack.SmackException$NoResponseException: No response received within packet reply timeout. Timeout was 5000ms (~5s)
W/System.err: at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 250)
W/System.err: at org.jivesoftware.smack.tcp.XMPPTCPConnection.loginNonAnonymously(XMPPTCPConnect ion.java:350)
W/System.err: at org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java :369)
This is the code that causes the error:
XMPPTCPConnectionConfiguration.XMPPTCPConnectionConfigurationBuilder builder =
XMPPTCPConnectionConfiguration.builder();
builder.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
builder.setServiceName(mServiceName);
builder.setUsernameAndPassword(mUsername, mPassword);
builder.setRosterLoadedAtLogin(true);
builder.setResource(“XYZ”);
mConnection = new XMPPTCPConnection(builder.build());
mConnection.addConnectionListener(this);
mConnection.connect();
mConnection.login();