Hi

I am Akbar Shaik doing MSc in Newcastle University. When i was runing my
client java application for Google calendar API from home network, it was
working fine. when i am rying to run same code from university network i am
geting this error massages.

Your calendars:
com.google.gdata.util.AuthenticationException: Error connecting with login
URI
 at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(Unknown
Source)
 at
com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(Unknown
Source)
 at com.google.gdata.client.GoogleService.setUserCredentials(Unknown Source)
 at com.google.gdata.client.GoogleService.setUserCredentials(Unknown Source)
 at test.CalendarTest.main(CalendarTest.java:26)
Caused by: java.net.ConnectException: Connection timed out: 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.getNewHttpClient(Unknown
Source)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
 at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
 at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
Source)
 at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown
Source)
 at com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest(Unknown
Source)
 ... 5 more
Exception in thread "main" java.lang.NullPointerException
 at test.CalendarTest.main(CalendarTest.java:47)


code snipped
System.setProperty("http.proxyHost", "xyz.com");
          System.setProperty("http.proxyPort", "8080");
CalendarService myService = new CalendarService("exampleCo-exampleApp-1");
  try {
   myService.setUserCredentials(username, password);
}

i am not sure what i shd in place of xyz.com. as i am runing this
application on my laptop.

Please reply soon

AKBAR B SHAIK

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