Menu

#789 Saros can't connect through Google Talk

12.9.28.TESTING
closed-invalid
nobody
None
5
2015-02-10
2013-03-05
No

Hi,

I've installed Saros plugin on Eclipse Indigo.

I'm trying to connect it with my gmail account:

my.email@gmail.com

server: talk.google.com
port: 5223

The informations provided in faq about the server configuration are wrong: http://www.saros-project.org/faq#Can_I_use_Saros_with_my_Google_T

you must provide a port or the wizard will not let you close it.

I tried both with talk.google.com server both with gmail.com (as the FAQ say)

I can't connect.

This is the log...

!ENTRY de.fu_berlin.inf.dpp 4 0 2013-03-05 11:55:40.231
!MESSAGE New Connection State == ERROR (SarosNet.java:444)
!STACK 0
Connection failed. No response from server.: 
    at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)
    at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:568)
    at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:527)
    at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)
    at de.fu_berlin.inf.dpp.net.SarosNet.connect(SarosNet.java:302)
    at de.fu_berlin.inf.dpp.Saros.connect(Saros.java:642)
    at de.fu_berlin.inf.dpp.Saros.connect(Saros.java:676)
    at de.fu_berlin.inf.dpp.ui.actions.ChangeXMPPAccountAction$6.run(ChangeXMPPAccountAction.java:170)
    at de.fu_berlin.inf.dpp.util.Utils$6.run(Utils.java:338)
    at java.lang.Thread.run(Thread.java:679)

!ENTRY de.fu_berlin.inf.dpp 4 0 2013-03-05 11:57:32.681
!MESSAGE New Connection State == ERROR (SarosNet.java:444)
!STACK 0
java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
    at java.net.Socket.connect(Socket.java:546)
    at java.net.Socket.connect(Socket.java:495)
    at org.jivesoftware.smack.proxy.DirectSocketFactory.createSocket(DirectSocketFactory.java:28)
    at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:512)
    at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)
    at de.fu_berlin.inf.dpp.net.SarosNet.connect(SarosNet.java:302)
    at de.fu_berlin.inf.dpp.Saros.connect(Saros.java:642)
    at de.fu_berlin.inf.dpp.Saros.connect(Saros.java:676)
    at de.fu_berlin.inf.dpp.Saros.connect(Saros.java:676)
    at de.fu_berlin.inf.dpp.ui.actions.ChangeXMPPAccountAction$6.run(ChangeXMPPAccountAction.java:170)
    at de.fu_berlin.inf.dpp.util.Utils$6.run(Utils.java:338)
    at java.lang.Thread.run(Thread.java:679)

If this is not a bug but just a configuration issue please provide the right setting I have to use / fix the FAQ.

Thanks

Discussion

  • Stefan Rossbach

    Stefan Rossbach - 2013-03-05

    Just leave the server and port field blank and all should went well.

     
  • Stefan Rossbach

    Stefan Rossbach - 2013-03-05
    • status: open --> closed-invalid
     
  • Daniele Segato

    Daniele Segato - 2013-03-05

    Hi Stefan,

    you are right, it works with my private gmail account.

    Then I have another issue.

    I think the software is matching @gmail.com to know which servers to use, I need to manually specify.

    My company use Google Apps and we have an account with custom domain

    my.email@customdomain.com

    it has all services available to google users (including gtalk).

    How can I configure it to use gtalk services with my customdomain.com account?

    Thanks

     
  • Stefan Rossbach

    Stefan Rossbach - 2013-03-05

    What happens behind the scene is a simple DNS query

    _xmpp-client._tcp.gmail.com SRV service location:
    priority = 20
    weight = 0
    port = 5222
    svr hostname = alt4.xmpp.l.google.com
    _xmpp-client._tcp.gmail.com SRV service location:
    priority = 5
    weight = 0
    port = 5222
    svr hostname = xmpp.l.google.com
    _xmpp-client._tcp.gmail.com SRV service location:
    priority = 20
    weight = 0
    port = 5222
    svr hostname = alt1.xmpp.l.google.com
    _xmpp-client._tcp.gmail.com SRV service location:
    priority = 20
    weight = 0
    port = 5222
    svr hostname = alt2.xmpp.l.google.com
    _xmpp-client._tcp.gmail.com SRV service location:
    priority = 20
    weight = 0
    port = 5222
    svr hostname = alt3.xmpp.l.google.com

    If the customdomain SRV are correctly configured you can just
    use "my.email@customdomain.com".

    If this does not work you must find out the correct host address and port
    by yourself.

    As you see xmpp.l.google.com = talk.google.com ... you picked the wrong port.

     
  • Stefan Rossbach

    Stefan Rossbach - 2013-03-05

    According to http://support.google.com/a/bin/answer.py?hl=en&answer=49147

    just using my.user@customdomain.com as JID without any server options should be enough.

    If you look at the log file you will see some SASL exceptions if the username is not valid.

    The current problem I have is:

    For the normal Google Accounts your

    login name is: foo@[gmail.com|googlemail.com]

    but I do not know if Google Apps Accounts also must be suffixed by the domain.

    E.G my.user@customdomain.com

    Where the user login name is: my.user@customdomain.com
    and the domain is: customdomain.com

    We internally split the JID, so using foo@bar.com with server foobar.us

    will become:

    Login name: foo
    Domain: bar.com
    Server: foobar.us

     
  • Daniele Segato

    Daniele Segato - 2013-03-05

    Hi Stefan,

    I see..

    in the log I see this:

    !ENTRY de.fu_berlin.inf.dpp 4 0 2013-03-05 13:55:38.771
    !MESSAGE New Connection State == ERROR (SarosNet.java:444)
    !STACK 0
    SASL authentication PLAIN failed: invalid-authzid: 
        at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:337)
        at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:203)
        at de.fu_berlin.inf.dpp.net.SarosNet.connect(SarosNet.java:317)
        at de.fu_berlin.inf.dpp.Saros.connect(Saros.java:642)
        at de.fu_berlin.inf.dpp.ui.actions.ChangeXMPPAccountAction$6.run(ChangeXMPPAccountAction.java:170)
        at de.fu_berlin.inf.dpp.util.Utils$6.run(Utils.java:338)
        at java.lang.Thread.run(Thread.java:679)
    

    I disabled SASL in advanced setting and I could login!

    What are the conseguences of disabling SASL?

    I'm pretty sure the Username / password are correct so I suspect the issue may be what you say: google may be expecting the Login name to include the @domain part.

     
  • Stefan Rossbach

    Stefan Rossbach - 2013-03-05

    As long as you have TLS enabled there is no problem, as you can see only SASL PLAIN is used, so it even does not matter.

    I am just wondering why SASL Auth fails, but works fine without using it.

     
  • Daniele Segato

    Daniele Segato - 2013-03-05

    Let me know if I can do anything to help you discover it

    I can even test with some custom plugin you pass me ;)

     
  • Stefan Rossbach

    Stefan Rossbach - 2013-03-05

    Seems to be a bug in the buggish Smack API

    http://community.igniterealtime.org/thread/46624

    Seems to affect SASL Plain as well.

    Thats the reason we must suffix the login name to avoid authentication failure.

     
  • Daniele Segato

    Daniele Segato - 2013-03-05

    Stefan, would you like me to open another bug report?

    I think this is the exact thing the user was trying to say to you on bug #733

     
  • Stefan Rossbach

    Stefan Rossbach - 2013-03-05

    As we do not tend to self patch 3rd party libraries I think this would not be very helpful.

    There is also a bug in Smack that will prevent the usage of Socks5 via GTalk.

    http://community.igniterealtime.org/message/226175#226175

    You can open as many bug reports as you like but be prepared that they will be closed
    with the same answer: defect in 3rd party library.

     

Log in to post a comment.