Hi johnny, Sorry for the delay -- I appreciate your feedback, I'll get those two points added in:)
Jeff has actually written a great article about how to deal with proxies in our client libraries: http://code.google.com/support/bin/answer.py?answer=71349 Let me know if adding your proxy settings into the calendar sample works out. Cheers, Steph On Nov 9, 8:27 pm, johnny <[EMAIL PROTECTED]> wrote: > Hi Steph, > > I just tried to run the sample code from home (without the company > firewall of course) and it worked like a charm. Now the question > becomes: how do I continue my experiment with the Google Calendar Data > API provided the firewall is present? Your feedback will be greatly > appreciated. Thanks. > > Johnny > > P.S. You might want to consider adding the following two items to your > article: 1) Make sure there is at least one calendar associated with > the account; 2) If running into authentication exception, make sure it > is not caused by firewall (assuming the credentials are all correct). > > On Nov 9, 3:05 pm, johnny <[EMAIL PROTECTED]> wrote: > > > > > Hi Steph, > > > Thanks for your prompt response. I do have one calendar (default) > > associated with the account. I suspect the issue is due to the company > > firewall but I don't know for sure. Perhaps I need to specify a port > > number? Thanks. > > > Johnny > > > On Nov 9, 1:45 pm, Steph L <[EMAIL PROTECTED]> wrote: > > > > Hi johnny, > > > > Make sure you log in tohttp://calendar.google.comwithyourtest > > > account. The errors look like they're being thrown because there's no > > > calendar associated with the account. > > > > I'll go back and add that as a caveat in the article, thanks :) > > > > Hope this helps, > > > > Steph > > > > On Nov 9, 11:17 am, johnny <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > I was trying to run the sample calendar code provided by Google > > > > following the instructions > > > > athttp://code.google.com/support/bin/answer.py?answer=78455. > > > > > While the build was successful, I received some authentication errors > > > > as follows (I am pretty sure I entered the credentials correctly in > > > > build.properties). Your help will be greatly appreciated. thanks in > > > > advance. > > > > > Johnny > > > > > C:\HaloSync\gdata\java>ant sample.calendar.run > > > > Buildfile: build.xml > > > > > sample.calendar.dependencies: > > > > > template.require.service.jar: > > > > > sample.core.dependencies: > > > > > core.sample.core.util.build: > > > > [javac] Compiling 2 source files to C:\HaloSync\gdata\java\sample > > > > \util\class > > > > es > > > > [javac] Note: C:\HaloSync\gdata\java\sample\util\CommonUtils.java > > > > uses or ov > > > > errides a deprecated API. > > > > [javac] Note: Recompile with -Xlint:deprecation for details. > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\util\lib > > > > \sample-util.jar > > > > > sample.calendar.build: > > > > [javac] Compiling 3 source files to C:\HaloSync\gdata\java\sample > > > > \calendar\c > > > > lasses > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \EventFeedDe > > > > mo.jar > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \CalendarFee > > > > dDemo.jar > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \AclFeedDemo > > > > .jar > > > > > sample.calendar.run: > > > > > sample.calendar.dependencies: > > > > > template.require.service.jar: > > > > > sample.core.dependencies: > > > > > core.sample.core.util.build: > > > > [javac] Compiling 2 source files to C:\HaloSync\gdata\java\sample > > > > \util\class > > > > es > > > > [javac] Note: C:\HaloSync\gdata\java\sample\util\CommonUtils.java > > > > uses or ov > > > > errides a deprecated API. > > > > [javac] Note: Recompile with -Xlint:deprecation for details. > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\util\lib > > > > \sample-util.jar > > > > > sample.calendar.build: > > > > [javac] Compiling 3 source files to C:\HaloSync\gdata\java\sample > > > > \calendar\c > > > > lasses > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \EventFeedDe > > > > mo.jar > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \CalendarFee > > > > dDemo.jar > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \AclFeedDemo > > > > .jar > > > > > sample.calendar.eventfeed.run: > > > > [java] The server had a problem handling your request. > > > > [java] com.google.gdata.util.AuthenticationException: Error > > > > connecting with > > > > login URI > > > > [java] at > > > > com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(U > > > > nknown Source) > > > > [java] at > > > > com.google.gdata.client.GoogleAuthTokenFactory.setUserCredent > > > > ials(Unknown Source) > > > > [java] at > > > > com.google.gdata.client.GoogleService.setUserCredentials(Unkn > > > > own Source) > > > > [java] at > > > > com.google.gdata.client.GoogleService.setUserCredentials(Unkn > > > > own Source) > > > > [java] at sample.calendar.EventFeedDemo.main(Unknown Source) > > > > [java] Caused by: java.net.UnknownHostException:www.google.com > > > > [java] at > > > > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) > > > > [java] at java.net.Socket.connect(Socket.java:519) > > > > [java] at java.net.Socket.connect(Socket.java:469) > > > > [java] at sun.net.NetworkClient.doConnect(NetworkClient.java: > > > > 157) > > > > [java] at > > > > sun.net.www.http.HttpClient.openServer(HttpClient.java:394) > > > > [java] at > > > > sun.net.www.http.HttpClient.openServer(HttpClient.java:529) > > > > [java] at > > > > sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.jav > > > > a:271) > > > > [java] at > > > > sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:3 > > > > 28) > > > > [java] at > > > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection > > > > .getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172) > > > > [java] at > > > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http > > > > URLConnection.java:729) > > > > [java] at > > > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection > > > > .connect(AbstractDelegateHttpsURLConnection.java:158) > > > > [java] at > > > > sun.net.www.protocol.http.HttpURLConnection.getOutputStream(H > > > > ttpURLConnection.java:832) > > > > [java] at > > > > sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputSt > > > > ream(HttpsURLConnectionImpl.java:230) > > > > [java] at > > > > com.google.gdata.client.GoogleAuthTokenFactory.makePostReques > > > > t(Unknown Source) > > > > [java] ... 5 more > > > > > sample.calendar.dependencies: > > > > > template.require.service.jar: > > > > > sample.core.dependencies: > > > > > core.sample.core.util.build: > > > > [javac] Compiling 2 source files to C:\HaloSync\gdata\java\sample > > > > \util\class > > > > es > > > > [javac] Note: C:\HaloSync\gdata\java\sample\util\CommonUtils.java > > > > uses or ov > > > > errides a deprecated API. > > > > [javac] Note: Recompile with -Xlint:deprecation for details. > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\util\lib > > > > \sample-util.jar > > > > > sample.calendar.build: > > > > [javac] Compiling 3 source files to C:\HaloSync\gdata\java\sample > > > > \calendar\c > > > > lasses > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \EventFeedDe > > > > mo.jar > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \CalendarFee > > > > dDemo.jar > > > > [jar] Building jar: C:\HaloSync\gdata\java\sample\calendar\lib > > > > \AclFeedDemo > > > > .jar > > > > > sample.calendar.calendarfeed.run: > > > > [java] com.google.gdata.util.AuthenticationException: Error > > > > connecting with > > > > login URI > > > > [java] at > > > > com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(U > > > > nknown Source) > > > > [java] at > > > > com.google.gdata.client.GoogleAuthTokenFactory.setUserCredent > > > > ials(Unknown Source) > > > > [java] at > > > > com.google.gdata.client.GoogleService.setUserCredentials(Unkn > > > > own Source) > > > > [java] at > > > > com.google.gdata.client.GoogleService.setUserCredentials(Unkn > > > > own Source) > > > > [java] at sample.calendar.CalendarFeedDemo.main(Unknown > > > > Source) > > > > [java] Caused by: java.net.UnknownHostException:www.google.com > > > > [java] at > > > > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) > > > > [java] at java.net.Socket.connect(Socket.java:519) > > > > [java] at java.net.Socket.connect(Socket.java:469) > > > > [java] at sun.net.NetworkClient.doConnect(NetworkClient.java: > > > > 157) > > > > [java] at > > > > sun.net.www.http.HttpClient.openServer(HttpClient.java:394) > > > > [java] at > > > > sun.net.www.http.HttpClient.openServer(HttpClient.java:529) > > > > [java] at > > > > sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.jav > > > > a:271) > > > > [java] at > > > > sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:3 > > > > 28) > > > > [java] at > > > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection > > > > .getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172) > > > > [java] at > > > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http > > > > URLConnection.java:729) > > > > [java] Calendars in metafeed > > > > [java] at > > > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection > > > > .connect(AbstractDelegateHttpsURLConnection.java:158) > > > > [java] at > > > > sun.net.www.protocol.http.HttpURLConnection.getOutputStream(H > > > > ttpURLConnection.java:832) > > > > [java] at > > > > sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputSt > > > > ream(HttpsURLConnectionImpl.java:230) > > > > [java] at > > > > com.google.gdata.client.GoogleAuthTokenFactory.makePostReques > > > > t(Unknown Source) > > > > [java] ... 5 more > > > > [java] There was a problem communicating with the service. > > > > [java] java.net.UnknownHostException:www.google.com > > > > [java] at > > > > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) > > > > [java] at java.net.Socket.connect(Socket.java:519) > > > > [java] at java.net.Socket.connect(Socket.java:469) > > > > [java] at > > ... > > read more ยป- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google 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-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
