Hi,
I am getting the AuthenticationException at the following lines of
code while I debug.
CalendarService myService = new CalendarService("exampleCo-
exampleApp-1");
myService.setUserCredentials(userName, userPassword);
The exception says:
Exception in thread "main"
com.google.gdata.util.AuthenticationException: Error
connecting with login URI
at com.google.gdata.client.GoogleService.getAuthToken(Unknown
Source)
at
com.google.gdata.client.GoogleService.setUserCredentials(Unknown Sour
ce)
at
com.google.gdata.client.GoogleService.setUserCredentials(Unknown Sour
ce)
at MyCalendarClient.main(MyCalendarClient.java:496)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown
Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(Unknown Source)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
Please help me.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---