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

Chris Chen ckchris at idream.net
Mon Aug 29 08:49:05 CDT 2005


Hi,

Just to clarify, Muse does not support SASL and TLS.  Thus, you  
cannot use Muse to connect to Google, neither now nor the future.

However, Feridian, the next generation XMPP API that will replace  
Muse, fully supports SASL and TLS.  In fact, I have used it to  
connect successfully to Google's IM service.  Unfortunately, it does  
not support the X-GOOGLE-TOKEN SASL authentication.  But it does  
support PLAIN.

I am in the stages of writing the documentation for Feridian.  The  
web pages are not yet ready so that's why you don't see anything on  
Echomine about Feridian (except for news).  But as of now, CVS code  
is actually stable and usable.

you can download Feridian's latest SVN codebase off echomine.berlios.de:

http://developer.berlios.de/projects/echomine

I have not yet released an alpha version of Feridian yet, but that  
will be soon.  However, current Feridian code already supports about  
90% of all XMPP required features.  I am just adding a few more  
additional features before I release it.

Download the latest code base and just run the following ant tasks to  
get the proper libraries:

ant jar-xmpp jar-xmpp-examples jar-jabber-compat

The only example file is the SimpleXMPPClient that is located in the  
feridian-xmpp-examples.jar file.  You can read the source file to see  
how to do some connect and login procedures.  Unfortunately, the  
documentation is not ready yet.

Let me know if you have any questions.

SVN checkout instructions are located on the berlios web, but I will  
provide it here.

svn co svn://svn.berlios.de/echomine/feridian/trunk

You will need to have SVN installed.  SVN can be downloaded from:

http://subversion.tigris.org/

Thanks,
Chris



On Aug 28, 2005, at 10:37 PM, Ashutosh wrote:

> 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
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
>




More information about the JDev mailing list