[jdev] Error while trying to login into talk.google.com

Ashutosh ashutosh.lawania at gmail.com
Mon Aug 29 00:37:48 CDT 2005


I am using muse 0.81 apis to write a jabber/xmpp client.
I am tring to connect talk.google.com <http://talk.google.com/>
I am getting follwing error while trying to authenticate.
Here is my code.
Pls tell me what is missing.
 Thanks 
Ashutosh Lawania
 
*package com.xmppcore;
import com.echomine.jabber.Jabber;
import com.echomine.jabber.JabberContext;
import com.echomine.jabber.JabberSession;
import com.echomine.jabber.JabberServerService ;
public class XMPPConsoleClient {

public static void main(String args[])
{
JabberSession session = null ;
try
{
Jabber jabber = new Jabber();
JabberContext context = new JabberContext("username", "password", " 
talk.google.com <http://talk.google.com/>");

session = jabber.createSession(context);
session.connect("talk.google.com <http://talk.google.com/>",5222);
session.getUserService ().login();

}
catch(Exception ex)
{
System.out.println("Exception occured");
ex.printStackTrace();
}
finally
{
session.disconnect();
}
}* 

*}
*
** 
 DEBUG [jabber/msg/outgoing] - <?xml version='1.0' encoding='UTF-8' 
?><stream:stream to=' talk.google.com <http://talk.google.com/>' version='
1.0' xmlns='jabber:client' xmlns:stream=' http://etherx.jabber.org/streams'>

DEBUG [jabber/msg/incoming] - <stream:stream
from="talk.google.com<http://talk.google.com/>"
id="EC5BB1B5">

DEBUG [jabber/msg/incoming] - <stream:features xmlns:stream="
http://etherx.jabber.org/streams" id="id_10003"><starttls 
xmlns="urn:ietf:params:xml:ns:xmpp-tls" /></stream:features> 

DEBUG [jabber/msg/outgoing] - <iq xmlns="jabber:client" id="id_10004" 
type="get"><query
xmlns="jabber:iq:auth"><username>ashutosh.lawania</username></query></iq>

DEBUG [jabber/msg/incoming] - <iq xmlns="jabber:client" id="id_10004" 
type="error"><query
xmlns="jabber:iq:auth"><username>ashutosh.lawania</username></query><error
code="405" type="cancel"><not-allowed
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><text 
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Server does not support 
PLAIN</text></error></iq> 

INFO [com.echomine.jabber.parser.JabberJAXPParser] - 
*IOException*: socket closed 

at com.echomine.jabber.JabberUserS ervice.login(
*JabberUserService.java:45*) 

at com.xmppcore.XMPPConsoleClient.main(
*XMPPConsoleClient.java:23*) 

Exception occured



More information about the JDev mailing list