hi there!
i'm new to the gdata api an wanted to try it out. in my particular
case i want to come along with java and read the basics for this api
at
http://code.google.com/support/bin/answer.py?answer=78455&topic=12022;
well i tried out the code but get an error :
Sure the authentication must be done by using https etc. i dont know
what actually goes wrong i thought the api will handle the
authentication process.
#####################################################################
Exception in thread "main"
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 CalendarTest.main(CalendarTest.java:19)
Caused by: java.net.SocketException:
java.security.NoSuchAlgorithmException: Error constructing
implementation (algorithm: Default, provider: SunJSSE, class:
sun.security.ssl.DefaultSSLContextImpl)
at
javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:
197)
at
javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:
217)
at
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
384)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:
186)
at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:
850)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:
251)
at
com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest(Unknown
Source)
... 5 more
Caused by: java.security.NoSuchAlgorithmException: Error constructing
implementation (algorithm: Default, provider: SunJSSE, class:
sun.security.ssl.DefaultSSLContextImpl)
at java.security.Provider$Service.newInstance(Provider.java:1263)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:237)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:165)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:143)
at javax.net.ssl.SSLContext.getDefault(SSLContext.java:86)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:
120)
at
javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:
345)
at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:
303)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:
86)
at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.net.URL.openConnection(URL.java:970)
... 6 more
Caused by: java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:79)
at java.io.InputStreamReader.<init>(InputStreamReader.java:73)
at
sun.security.provider.CertBundleKeyStoreImpl.engineLoad(CertBundleKeyStoreImpl.java:
142)
at java.security.KeyStore.load(KeyStore.java:1202)
at
sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(TrustManagerFactoryImpl.java:
221)
at
sun.security.ssl.DefaultSSLContextImpl.getDefaultTrustManager(DefaultSSLContextImpl.java:
88)
at
sun.security.ssl.DefaultSSLContextImpl.<init>(DefaultSSLContextImpl.java:
58)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:539)
at java.lang.Class.newInstance0(Class.java:373)
at java.lang.Class.newInstance(Class.java:326)
at java.security.Provider$Service.newInstance(Provider.java:1239)
... 17 more
####################################################################