On Wednesday, 31 October 2012 16:28:19 UTC, Robert Metcalf wrote:
> Hi,
> I am writing a Java application which can be run from a Desktop computer.
> I want to log in to Picasa, look at photo album information and
> download/upload/delete etc.
> I have followed the documentation and I get the following error:
> AuthenticationException:com.google.gdata.util.AuthenticationException:
> Error connecting with login URI
> when trying to run this code:
> PicasawebService service = new
> PicasawebService("gdata-PhotosPartialDemo");
> accountManager am = getGlobals().getAccountManager();
> service.setUserCredentials(am.getUserName(m_AccountID).toString(),
> am.getPassword(m_AccountID).toString(),ClientLoginAccountType.HOSTED_OR_GOO GLE);
> I have:
> - Tested acocuntManager to prove that
> am.getUserName(m_AccountID).toString() and
> am.getPassword(m_AccountID).toString() produce correct values for username
> and password
> - Tried every combination of ClientLoginAccountType.HOSTED_OR_GOOGLE
> - Added the cert from https://www.google.com/accounts/AuthSubRequest to
> my keystore (
> http://prasanta-paul.blogspot.co.uk/2010/11/certificate-exception-in-...
> )
> I always get the same error. Does anyone know how I can debug this further?
> What URI is it getting an error with?
> Can I try and call the http connection myself?
> Thanks
> Robert