com.google.gdata.util.AuthenticationException: Error connecting with login URIturned out to be that the modified cacerts file I was using (see this post) didn't have the right certificates in it, since I had only imported a single certificate. When I imported the rest (effectively creating a gkeytool-compliant version of the certificates that were in the keytool-version), that error went away.
Now my program can successfully authenticate to Google, create the contact and ... not quite insert it. I'm up to this:
root@iphone 24> java -cp /usr/share/java/gdata-core.jar:/usr/share/java/gdata-client.jar:/usr/share/java/gdata-contacts.jar:dmsync-0.1.jar net.dmsync.dmSyncI've tried some different versions of class imports, but this doesn't seem to help:
foo!
ContactsService 3
setUserCredentials
createContact
creating contact
setting email 1
setting email 2
creating URL
insertig contact
java.lang.NoClassDefFoundError: com/google/gdata/client/http/GoogleGDataRequest$GoogleCookieHandler
at com.google.gdata.client.http.GoogleGDataRequest.(Unknown Source)
import com.google.gdata.client.http.GoogleGDataRequest;and if I make it more explicit, like so:
import com.google.gdata.client.http.GoogleGDataRequest.*;
import com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler;I get this error on compiling:
[javac] Compiling 1 source file to /usr/src/iphone/dmsync/build/classesI hate it when I don't understand java enough to parse the meaning of this. :(
[javac] /usr/src/iphone/dmsync/src/java/net/dmsync/dmSync.java:24: com.google.gdata.client.http.GoogleGDataRequest.GoogleCookieHandler has private access in com.google.gdata.client.http.GoogleGDataRequest
No comments:
Post a Comment