Note that there are some explanatory texts on larger screens.

plurals
  1. POSASL (DIGEST-MD5) authentication error with SMACK
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/5498260/sasl-authentication-failed-while-integrating-facebook-chat-using-smack">SASL Authentication failed while integrating facebook chat using Smack</a> </p> </blockquote> <p>I tries to compile this code and always it raises this exception </p> <blockquote> <p>SASL authentication failed using mechanism DIGEST-MD5:<br> at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:325)<br> at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)<br> at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)<br> at SimpleConnection.main(SimpleConnection.java:31) </p> </blockquote> <p>Code : </p> <pre><code>import javax.swing.JOptionPane; import org.jivesoftware.smack.Chat; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.MessageListener; import org.jivesoftware.smack.SASLAuthentication; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ public class SimpleConnection { static String username = ""; static String password = ""; public SimpleConnection() { } public static void main(String[] args) { try { SASLAuthentication.registerSASLMechanism("DIGEST-MD5", MySASLDigestMD5Mechanism.class); ConnectionConfiguration conf = new ConnectionConfiguration("chat.facebook.com", 5222); XMPPConnection con = new XMPPConnection(conf); con.connect(); con.login(username, password); //Chat c = con.getChatManager().createChat("atopmax", new aa()); } catch (Exception e) { e.printStackTrace(); } } } </code></pre> <p>What am I doing wrong? Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload