java - Get a exception of "error connecting with login URI" when running Google Data's example -


When I run Calendar FeedDemo example Java package of Google Data API client libraries have to face me such an exception does

  java-classpath "category: lib / *" Kailenderfeeddomo Myaddr@gmailkcom Mypassed Http://wwwkgooglekcom/calendar/feeds/myaddr@gmailkcom Com K Google gdata.util.AuthenticationException: Error on com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials on (GoogleAuthTokenFactory.java:346) com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken (GoogleAuthTokenFactory.java:489) with login URI adding com.google.gdata.client.GoogleService.setUserCredentials com.google.gdata.client.GoogleService.setUserCredentials (GoogleService.java:317) on CalendarFeedDemo.main (CalendarFeedDemo.java:261) to (GoogleService.java:362) because: Java.net.SocketException: java.net.PlainSocketImpl.socketConnect on java.net.PlainSock (no outside network access to the Basic Law) etImpl.doConnect (PlainSocketImpl.java:333) java.net.PlainSocketImpl.connectToAddress (Plainsoketimplkjawa:l95) Jawaknetkplainsoketimplkknekt (Plainsoketimplkjawa:l82) Jawaknetksoksoketimplkknek On t (SocksSocketImpl .java: 366) java.net.Socket.connect on com.sun.net (Soketkjawa 2525) com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect (SSLSocketImpl.java) At 50). ssl.internal.ssl.BaseSSLSocketImpl.connect sun.net.NetworkClient.doConnect (NetworkClient.java:163) to (BaseSSLSocketImpl.java:141) on sun.net.www.http.HttpClient.openServer (HttpClient.java:394) Sun.net.www.Http.HttpClient.openServer (sun.net.www.protocol.https.HttpsClient on suns.net.www. & Lt; init & hTTP gt; (HttpsClient.java7272). protocol.https.HttpsClient on .New (HttpsClient.java:329) sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient (AbstractDelegateHttpsURLConnection.java:172) on sun.net.www.protocol.http.HttpURLConnectio N.plainConnect (httpURLConnection.java: on sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (SunDelegateHttpsURLConnection.java158) at 801) sun.net.www.protocol.http.HttpURLConnection.getOutputStream (HttpURLConnection.java: 904) on com.google.gdata.client Com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest (GoogleAuthTokenFactory.java:54 .GoogleAuthTokenFactory.getAuthToken (GoogleAuthTokenFactory.java:487) ... 4 more sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream (HttpsURLConnectionImpl.java:230)) at 7  

I do not understand why this is an exception, please help me.

to the network is not accessible , I can say a connection error : Either Google was unattainable (which is not quite possible), either there was a problem with your internet connection.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -