If you have not done so already, you should try posting this to Google's
specific discussion group on authentication for Google APIs:

http://groups.google.com/group/Google-Accounts-API

On Thu, Nov 12, 2009 at 8:13 AM, Razak <[email protected]> wrote:

>
> Hi,
>
> I was using gdata api to fetch Picasa Web Albums. I am using gdata-
> photos-1.0.jar. I was getting the response till some days before. But
> now it is giving me some errors. Below is the method I am using
>
>
> public AlbumFeed getAuthorizedContent(String token, String
> tokenSecret) throws Exception {
>             GoogleService googleService = new PicasawebService("Festa");
>             URL feedUrl = new URL("
> http://picasaweb.google.com/data/feed/api/
> user/default <http://picasaweb.google.com/data/feed/api/%0Auser/default>
> ");
>             oauthParameters = new GoogleOAuthParameters();
>             oauthParameters.setOAuthConsumerKey(key");
>             oauthParameters.setOAuthConsumerSecret("secret");
>             oauthParameters.setOAuthToken(token);
>             oauthParameters.setOAuthTokenSecret(tokenSecret);
>             oauthParameters.setOAuthSignatureMethod("HMAC-SHA1");
>             signer = new OAuthHmacSha1Signer();
>             googleService.setOAuthCredentials(oauthParameters, signer);
>             AlbumFeed resultFeed =
> (AlbumFeed)googleService.getFeed(feedUrl,
> AlbumFeed.class);
>             return resultFee
> }
>
> when I call this method passing the token and secret, I am getting the
> exception as follows.
>
>
>
>
> [Fatal Error] :55:3: The element type "meta" must be terminated by the
> matching end-tag "</meta>".
> Nov 12, 2009 9:18:11 PM com.google.gdata.util.LogUtils logException
> WARNING: org.xml.sax.SAXParseException: The element type "meta" must
> be terminated by the matching end-tag "</meta>".
> Message: The element type "meta" must be terminated by the matching
> end-tag "</meta>".
>
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>        at org.xml.sax.helpers.ParserAdapter.parse(Unknown Source)
>        at com.google.gdata.util.XmlParser.parse(XmlParser.java:675)
>        at com.google.gdata.util.XmlParser.parse(XmlParser.java:606)
>        at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:759)
>        at com.google.gdata.util.ParseUtil.parseFeed(ParseUtil.java:200)
>        at com.google.gdata.util.ParseUtil.readFeed(ParseUtil.java:168)
>        at com.google.gdata.data.BaseFeed.readFeed(BaseFeed.java:741)
>        at com.google.gdata.client.Service.getFeed(Service.java:965)
>        at com.google.gdata.client.Service.getFeed(Service.java:819)
>        at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
> 599)
>        at com.google.gdata.client.Service.getFeed(Service.java:838)
>        at com.wipro.pcm.coe.festa.oauth.PicasaService.getAuthorizedContent
> (PicasaService.java:132)
>        at com.wipro.pcm.coe.festa.oauth.PicasaService.main
> (PicasaService.java:300)
> com.google.gdata.util.ParseException: The element type "meta" must be
> terminated by the matching end-tag "</meta>".
>        at com.google.gdata.util.XmlParser.parse(XmlParser.java:693)
>        at com.google.gdata.util.XmlParser.parse(XmlParser.java:606)
>        at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:759)
>        at com.google.gdata.util.ParseUtil.parseFeed(ParseUtil.java:200)
>        at com.google.gdata.util.ParseUtil.readFeed(ParseUtil.java:168)
>        at com.google.gdata.data.BaseFeed.readFeed(BaseFeed.java:741)
>        at com.google.gdata.client.Service.getFeed(Service.java:965)
>        at com.google.gdata.client.Service.getFeed(Service.java:819)
>        at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
> 599)
>        at com.google.gdata.client.Service.getFeed(Service.java:838)
>        at com.wipro.pcm.coe.festa.oauth.PicasaService.getAuthorizedContent
> (PicasaService.java:132)
>        at com.wipro.pcm.coe.festa.oauth.PicasaService.main
> (PicasaService.java:300)
>
>
> please help me in solving this issue.
>
> Thanks in advance
> Razak
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OAuth" 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/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to