SOLVED
Added following lines
System.setProperty("https.proxyHost", "proxy.myconn.com");
System.setProperty("https.proxyPort", "4545");
Now it's working fine.
:)
On May 11, 11:38 am, Ravikumar N B <[email protected]> wrote:
> Hi
>
> I tried to run gdata-sample and follow the instructions given in
> install.txt. But i got ERROR
>
> sample.calendar.build:
> [javac] Compiling 3 source files to /home/ravi/gdata_sample/java/
> sample/calendar/classes
>
> 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
> (GoogleAuthTokenFactory.java:479)
> [java] at
> com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials
> (GoogleAuthTokenFactory.java:336)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:362)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:317)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:301)
> [java] at sample.calendar.EventFeedDemo.main(EventFeedDemo.java:
> 465)
> [java] Caused by: java.net.ConnectException: Connection refused
> [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
> [java] at java.net.PlainSocketImpl.doConnect
> (PlainSocketImpl.java:333)
> [java] at java.net.PlainSocketImpl.connectToAddress
> (PlainSocketImpl.java:195)
> [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:
> 182)
> [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:
> 366)
> [java] at java.net.Socket.connect(Socket.java:519)
> [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect
> (SSLSocketImpl.java:550)
> [java] at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect
> (BaseSSLSocketImpl.java:141)
> [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:
> 163)
> [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.java:271)
> [java] at sun.net.www.protocol.https.HttpsClient.New
> (HttpsClient.java:328)
> [java] at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient
> (AbstractDelegateHttpsURLConnection.java:172)
> [java] at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect
> (HttpURLConnection.java:793)
> [java] at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
> (AbstractDelegateHttpsURLConnection.java:158)
> [java] at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream
> (HttpURLConnection.java:896)
> [java] at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream
> (HttpsURLConnectionImpl.java:230)
> [java] at
> com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest
> (GoogleAuthTokenFactory.java:537)
> [java] at
> com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken
> (GoogleAuthTokenFactory.java:477)
> [java] ... 5 more
>
> sample.calendar.dependencies:
>
> template.require.service.jar:
>
> sample.core.dependencies:
>
> core.sample.core.util.build:
> [javac] Compiling 2 source files to /home/ravi/gdata_sample/java/
> sample/util/classes
> [javac] Note: /home/ravi/gdata_sample/java/sample/util/
> CommonUtils.java uses or overrides a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [jar] Building jar: /home/ravi/gdata_sample/java/sample/util/lib/
> sample-util.jar
>
> sample.calendar.build:
> [javac] Compiling 3 source files to /home/ravi/gdata_sample/java/
> sample/calendar/classes
> [jar] Building jar: /home/ravi/gdata_sample/java/sample/calendar/
> lib/EventFeedDemo.jar
> [jar] Building jar: /home/ravi/gdata_sample/java/sample/calendar/
> lib/CalendarFeedDemo.jar
> [jar] Building jar: /home/ravi/gdata_sample/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
> (GoogleAuthTokenFactory.java:479)
> [java] at
> com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials
> (GoogleAuthTokenFactory.java:336)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:362)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:317)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:301)
> [java] at sample.calendar.CalendarFeedDemo.main
> (CalendarFeedDemo.java:259)
> [java] Caused by: java.net.ConnectException: Connection refused
> [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
> [java] at java.net.PlainSocketImpl.doConnect
> (PlainSocketImpl.java:333)
> [java] at java.net.PlainSocketImpl.connectToAddress
> (PlainSocketImpl.java:195)
> [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:
> 182)
> [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:
> 366)
> [java] at java.net.Socket.connect(Socket.java:519)
> [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect
> (SSLSocketImpl.java:550)
> [java] at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect
> (BaseSSLSocketImpl.java:141)
> [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:
> 163)
> [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.java:271)
> [java] at sun.net.www.protocol.https.HttpsClient.New
> (HttpsClient.java:328)
> [java] at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient
> (AbstractDelegateHttpsURLConnection.java:172)
> [java] at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect
> (HttpURLConnection.java:793)
> [java] at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
> (AbstractDelegateHttpsURLConnection.java:158)
> [java] at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream
> (HttpURLConnection.java:896)
> [java] at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream
> (HttpsURLConnectionImpl.java:230)
> [java] at
> com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest
> (GoogleAuthTokenFactory.java:537)
> [java] at
> com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken
> (GoogleAuthTokenFactory.java:477)
> [java] ... 5 more
> [java] Calendars in metafeed
> [java] There was a problem communicating with the service.
> [java] java.net.ConnectException: Connection refused
> [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
> [java] at java.net.PlainSocketImpl.doConnect
> (PlainSocketImpl.java:333)
> [java] at java.net.PlainSocketImpl.connectToAddress
> (PlainSocketImpl.java:195)
> [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:
> 182)
> [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:
> 366)
> [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:
> 163)
> [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.http.HttpClient.<init>(HttpClient.java:
> 233)
> [java] at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> [java] at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> [java] at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient
> (HttpURLConnection.java:852)
> [java] at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect
> (HttpURLConnection.java:793)
> [java] at sun.net.www.protocol.http.HttpURLConnection.connect
> (HttpURLConnection.java:718)
> [java] at com.google.gdata.client.http.HttpGDataRequest.execute
> (HttpGDataRequest.java:487)
> [java] at com.google.gdata.client.http.GoogleGDataRequest.execute
> (GoogleGDataRequest.java:515)
> [java] at com.google.gdata.client.Service.getFeed(Service.java:
> 1016)
> [java] at com.google.gdata.client.Service.getFeed(Service.java:
> 879)
> [java] at com.google.gdata.client.GoogleService.getFeed
> (GoogleService.java:631)
> [java] at com.google.gdata.client.Service.getFeed(Service.java:
> 898)
> [java] at sample.calendar.CalendarFeedDemo.printUserCalendars
> (CalendarFeedDemo.java:106)
> [java] at sample.calendar.CalendarFeedDemo.main
> (CalendarFeedDemo.java:268)
>
> sample.calendar.dependencies:
>
> template.require.service.jar:
>
> sample.core.dependencies:
>
> core.sample.core.util.build:
> [javac] Compiling 2 source files to /home/ravi/gdata_sample/java/
> sample/util/classes
> [javac] Note: /home/ravi/gdata_sample/java/sample/util/
> CommonUtils.java uses or overrides a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
>
> sample.calendar.build:
> [javac] Compiling 3 source files to /home/ravi/gdata_sample/java/
> sample/calendar/classes
>
> sample.calendar.aclfeed.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
> (GoogleAuthTokenFactory.java:479)
> [java] at
> com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials
> (GoogleAuthTokenFactory.java:336)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:362)
> [java] at
> com.google.gdata.client.GoogleService.setUserCredentials
> (GoogleService.java:317)
> [java] at
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---