HI,

I have a standalone java program to handle Google Calendar and am
using ClientLogin to access the calendar:


     CalendarService myService = new CalendarService("exampleCo-
exampleApp-1");
     myService.setUserCredentials(userName, userPassword);
     *** username and userPassword are variables containing id/
password info.


The application successfully accesses my calendar and is able to
create events if it is running on my laptop.
However, if I run the application on our Unix box, it is giving below
authentication error. We don’t have a Proxy on the server and cannot
open a port to Google since Google’s IP address is not a fixed one.
With this circumstance, is there any way to make this work?



com.google.gdata.util.AuthenticationException: Error connecting with
login URI
        at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken
(GoogleAuthTokenFactory.java:479)
        at
com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials
(GoogleAuthTokenFactory.java:336)
        at com.google.gdata.client.GoogleService.setUserCredentials
(GoogleService.java:362)
        at com.google.gdata.client.GoogleService.setUserCredentials
(GoogleService.java:317)
        at com.google.gdata.client.GoogleService.setUserCredentials
(GoogleService.java:301)
        at com.cgi.evaws.GoogleCalendarUtil.processAction
(GoogleCalendarUtil.java:513)
        at com.cgi.evaws.GoogleCalendarTest.addEvent
(GoogleCalendarTest.java:81)
        at com.cgi.evaws.GoogleCalendarTest.main
(GoogleCalendarTest.java:113)
Caused by: java.net.MalformedURLException: unknown protocol: https
        at java.net.URL.<init>(URL.java:574)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken
(GoogleAuthTokenFactory.java:476)
        ... 7 more


I really need your advice on this and all tips will be appreciated.



Thanks!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to