Smack error when trying to login on server

public void login() {

try {

connection.login(loginUser, passwordUser);

Log.i(“LOGIN”, “Yey! We’re connected to the Xmpp server!”);

} catch (XMPPException e) {

e.printStackTrace();

} catch (SmackException e) {

e.printStackTrace();

} catch (IOException e) {

e.printStackTrace();

}

catch (Exception e) {

Log.i(“login fuction”,“login error”);

e.printStackTrace();

}

}

i’mgetting an error at this stage after succesful connection to the server

Did you follow the instructions in the Smack Readme?