• com.google.gdata.util.AuthenticationException: Error connecting with login URI

    By Benjamin Plummer 1 decade ago

    Can someone help me with what might be causing this error:





    C:\GooCalSync2>set gcsnotespath=c:\lotus\notes



    C:\GooCalSync2>set gcsjvmbinpath=c:\program files\java\jre1.5.0_17\bin



    C:\GooCalSync2>set gcsjvmlibpath=c:\program files\java\jre1.5.0_17\lib



    C:\GooCalSync2>set gcspath=c:\goocalsync2



    C:\GooCalSync2>set path=c:\lotus\notes\;c:\program files\java\jre1.5.0_17\bin;C:

    \WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\LSinfo\;C

    :\Program Files\Sybase\Shared\Win32;C:\Program Files\Sybase\SQL Anywhere 7\Win32

    ;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft

    SQL Server\80\Tools\Binn\;C:\Program Files\Windows Imaging\;C:\Program Files\Qu

    ickTime\QTSystem\;C:\Program Files\ActivIdentity\SecureLogin



    C:\GooCalSync2>set classpath=.;;c:\goocalsync2\gdata-core-1.0.jar;c:\goocalsync2

    \gdata-client-1.0.jar;c:\goocalsync2\gdata-calendar-2.0.jar;c:\lotus\notes\Note

    s.jar;c:\goocalsync2\goocalsync.jar



    C:\GooCalSync2>cd c:\goocalsync2



    C:\GooCalSync2>java goocalsync.GooCalSync



    2009/07/31 13:08:14 INFO GooCalSync v0.919 has started.

    2009/07/31 13:08:14 INFO Start Notes to Google synchronization.

    2009/07/31 13:08:14 DEBUG — Retrieved Notes calendar entry —

    2009/07/31 13:08:14 DEBUG ID : 2D52A22AF57E5BAD4A2575F60001214

    C

    2009/07/31 13:08:14 DEBUG Title : CWU

    2009/07/31 13:08:14 DEBUG Content :

    2009/07/31 13:08:14 DEBUG startDateTime : 2009-07-31T09:00:00+10:00

    2009/07/31 13:08:14 DEBUG endDateTime : 2009-07-31T12:15:00+10:00

    2009/07/31 13:08:14 DEBUG location :

    2009/07/31 13:08:14 DEBUG lastupdated : 2009-07-17T10:20:05+10:00

    2009/07/31 13:08:14 DEBUG apptype : 3

    2009/07/31 13:08:14 DEBUG frequency : 0

    2009/07/31 13:08:14 DEBUG interval : 0

    2009/07/31 13:08:14 DEBUG until :

    2009/07/31 13:08:14 DEBUG ————————————–

    2009/07/31 13:08:14 DEBUG executing insert

    2009/07/31 13:08:18 ERROR Cannot connect to Google

    2009/07/31 13:08:18 ERROR Account name : xxxxx@gmail.com

    2009/07/31 13:08:18 ERROR Account password : xxxxx

    2009/07/31 13:08:18 ERROR Message from Google: Error connecting with l

    ogin URI

    com.google.gdata.util.AuthenticationException: Error connecting with login URI

        at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAut<br/>
    

    hTokenFactory.java:419)

        at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(Goo<br/>
    

    gleAuthTokenFactory.java:301)

        at com.google.gdata.client.GoogleService.setUserCredentials(GoogleServic<br/>
    

    e.java:324)

        at com.google.gdata.client.GoogleService.setUserCredentials(GoogleServic<br/>
    

    e.java:301)

        at goocalsync.Factory.getCalendarService(Factory.java:195)<br/>
        at goocalsync.GoogleCalendarDAO.insert(GoogleCalendarDAO.java:75)<br/>
        at goocalsync.SyncService.executeNotesToGoogle(SyncService.java:42)<br/>
        at goocalsync.GooCalSync.main(GooCalSync.java:14)<br/>
    

    Caused by: java.net.UnknownHostException: www.google.com

        at java.net.PlainSocketImpl.connect(Unknown Source)<br/>
        at java.net.SocksSocketImpl.connect(Unknown Source)<br/>
        at java.net.Socket.connect(Unknown Source)<br/>
        at java.net.Socket.connect(Unknown Source)<br/>
        at sun.net.NetworkClient.doConnect(Unknown Source)<br/>
        at sun.net.www.http.HttpClient.openServer(Unknown Source)<br/>
        at sun.net.www.http.HttpClient.openServer(Unknown Source)<br/>
        at sun.net.www.protocol.https.HttpsClient.&lt;init&gt;(Unknown Source)<br/>
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)<br/>
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH<br/>
    

    ttpClient(Unknown Source)

        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour<br/>
    

    ce)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect<br/>
    

    (Unknown Source)

        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S<br/>
    

    ource)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unk<br/>
    

    nown Source)

        at com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest(Google<br/>
    

    AuthTokenFactory.java:476)

        at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAut<br/>
    

    hTokenFactory.java:417)

        ... 7 more<br/>
    

    2009/07/31 13:08:18 ERROR com.google.gdata.util.AuthenticationException: E

    rror connecting with login URI

    2009/07/31 13:08:18 ERROR at com.google.gdata.client.GoogleAuthTok

    enFactory.getAuthToken(GoogleAuthTokenFactory.java:419)

    2009/07/31 13:08:18 ERROR at com.google.gdata.client.GoogleAuthTok

    enFactory.setUserCredentials(GoogleAuthTokenFactory.java:301)

    2009/07/31 13:08:18 ERROR at com.google.gdata.client.GoogleService

    .setUserCredentials(GoogleService.java:324)

    2009/07/31 13:08:18 ERROR at com.google.gdata.client.GoogleService

    .setUserCredentials(GoogleService.java:301)

    2009/07/31 13:08:18 ERROR at goocalsync.Factory.getCalendarService

    (Factory.java:195)

    2009/07/31 13:08:18 ERROR at goocalsync.GoogleCalendarDAO.insert(G

    oogleCalendarDAO.java:75)

    2009/07/31 13:08:18 ERROR at goocalsync.SyncService.executeNotesTo

    Google(SyncService.java:42)

    2009/07/31 13:08:18 ERROR at goocalsync.GooCalSync.main(GooCalSync

    .java:14)



    C:\GooCalSync2>pause

    Press any key to continue . . .