Yes, this is a known problem that is blocked on getting a new Java library
pushed. The fix is a 1-line fix, if you're interested.
If you update line 106 of
java/src/com/google/gdata/data/photos/impl/PhotoDataImpl.java
to read:
declare(extProfile, GphotoStreamId.getDefaultDescription(false, true));
That should take care of the problem. Unfortunately the streamid was
declared a non-repeating field in one place and a repeating field in
another place. It should be a repeating field, as evidenced by the error
you see.
I will put in a server side fix and get it out to production either
Thursday or early next week since I don't know when I will be able to
convince the appropriate people to put out a new Java library with this
change.
Please let me know if this doesn't fix it for you.
Thank you,
Mike
On Jun 19, 2012 5:18 PM, "Matthew Ward" <[email protected]> wrote:
> Hello? Anyone? Looks like google is breaking their own xml schema, and
> thereby making xerces blow up.
>
>
>
>
>
> On Tuesday, June 12, 2012 4:47:43 PM UTC-7, Matthew Ward wrote:
>>
>> Hello, wer are getting this when trying to get a user's feed:
>>
>> com.google.gdata.util.**ParseException: [Line 1, Column 2628, element
>> feed] Duplicate extension element http://schemas.google.com/**
>> photos/2007:streamId <http://schemas.google.com/photos/2007:streamId>
>> at com.google.gdata.util.**XmlParser.throwParseException(**
>> XmlParser.java:739)
>> at com.google.gdata.util.**XmlParser.parse(XmlParser.**java:702)
>> at com.google.gdata.util.**XmlParser.parse(XmlParser.**java:585)
>> at com.google.gdata.data.**BaseFeed.parseAtom(BaseFeed.**java:867)
>> at com.google.gdata.wireformats.**input.AtomDataParser.parse(**
>> AtomDataParser.java:68)
>> at com.google.gdata.wireformats.**input.AtomDataParser.parse(**
>> AtomDataParser.java:39)
>> at com.google.gdata.wireformats.**input.CharacterParser.parse(**
>> CharacterParser.java:100)
>> at com.google.gdata.wireformats.**input.XmlInputParser.parse(**
>> XmlInputParser.java:52)
>> at com.google.gdata.wireformats.**input.AtomDualParser.parse(**
>> AtomDualParser.java:66)
>> at com.google.gdata.wireformats.**input.AtomDualParser.parse(**
>> AtomDualParser.java:34)
>> at com.google.gdata.client.**Service.parseResponseData(**
>> Service.java:2165)
>> at com.google.gdata.client.**Service.parseResponseData(**
>> Service.java:2098)
>> at com.google.gdata.client.**Service.getFeed(Service.java:**1136)
>> at com.google.gdata.client.**Service.getFeed(Service.java:**998)
>> at com.google.gdata.client.**GoogleService.getFeed(**
>> GoogleService.java:645)
>> at com.google.gdata.client.**Service.getFeed(Service.java:**1017)
>>
>>
>> Code:
>>
>> URL feedUrl = null;
>>
>> try {
>>
>> feedUrl = new URL(PicasaService.picasaEndPoi**nt + "albumid/"
>>
>> + remoteAlbumId + "/photoid/" + itemId + "?imgmax=d");
>>
>> log.debug("Picasa feed url: " + feedUrl.toString());
>>
>> } catch (MalformedURLException e) {
>>
>> return null;
>>
>> }
>>
>> PhotoFeed photoFeed;
>>
>> try {
>>
>> log.info("Picasa feed url: " + feedUrl.toString());
>>
>> photoFeed = picasaClient.getFeed(feedUrl, PhotoFeed.class);
>>
>> } catch (ServiceException e) {
>>
>> log.error("Picasa import error: " + feedUrl.toString(), e);
>>
>> }
>>
>>
>> I saw there was a proposed fix to another user, though the code is
>> radically different. We are using the following jars:
>>
>> gdata-base-1.0.jar gdata-client-meta-1.0.jar gdata-docs-3.0.jar
>> gdata-media-1.0.jar gdata-photos-meta-2.0.jar
>> gdata-youtube-meta-2.0.jar
>> gdata-client-1.0.jar gdata-core-1.0.jar
>> gdata-docs-meta-3.0.jar gdata-photos-2.0.jar gdata-youtube-2.0.jar
>> google-api-client-1.8.0-beta.**jar
>> google-api-services-drive-v1-**rev1-1.5.1-beta.jar
>> google-oauth-client-1.8.0-**beta.jar
>> google-api-oauth2-v2-rev3-**java-1.5.0-beta.jar
>> google-http-client-1.8.3-**beta.jar
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-picasa-data-api/-/t1fex_mFRH4J.
> 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/google-picasa-data-api?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" 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/google-picasa-data-api?hl=en.