powered by Jive Software

Login results

in method XMPPConnection.login(String,String, String)

Authentication authTypes = (Authentication)collector.nextResult(5000);

collector.cancel();

if (authTypes == null || authTypes.getType().equals(IQ.Type.ERROR)) {

throw new XMPPException(“No response from the server.”);

}

i think that this code throws “No response from server.” even if response was received:

Im trying to write component that uses XMPPConnection and supports user registration.

At first im trying to log in. if user does not exist, server sends error 401

in debug mode ive found that there was response (401 Unauthorized) but thrown exception contains the above message.

IMHO there is incorrect error handling

Roman,

Thanks for the bug report. I’'ve entered it into the system as smack-12[/issue].

Regards,

Matt