title: SASL authorization failing while connecting to XMPP server
body: <p>I am trying to connect to gmail using SMACK API through XMPP server. but getting the </p>
  
  <blockquote>
    <p>error  :  SASL authentication failed using mechanism PLAIN</p>
  </blockquote>
  
  <p>you can check a glimpse of code. I got it from net only</p>
  
  <pre><code>ConnectionConfiguration connConfig = new ConnectionConfiguration("talk.google.com", 5222, "gmail.com");
  connection = new XMPPConnection(connConfig);
  connection.connect();
  SASLAuthentication.supportSASLMechanism("PLAIN", 0);
  </code></pre>
  
  <p>I checked in the smack debug window. it says in XML   : </p>
  
  <blockquote>
    <p>&lt; invalid-authzid /></p>
  </blockquote>
  
  <p>I am already having account on gmail and my gtalk is also running.</p>