Hi,
I got the same problem.
PicasawebService myService = new PicasawebService("xxxxx");
myService.setUserCredentials("[email protected]", "xxxxx");
URL feedUrl = new URL("http://picasaweb.google.com/data/feed/api/user/
[email protected]?kind=album");
UserFeed myUserFeed = myService.getFeed(feedUrl, UserFeed.class);
thanks,
Eric
On Jan 30, 1:54 pm, Jeff Fisher <[email protected]> wrote:
> Hi,
>
> I can't reproduce this. Can you give me some more detailed steps to
> reproduce? I tried making both authenticated requests and un-
> authenticated requests, I have a mix of albums that are unlisted and
> public that are shared with an external account and I could not get
> the library to error out like this.
>
> Cheers,
> -Jeff
>
> On Jan 30, 8:09 am, "Carlos A.G." <[email protected]> wrote:
>
> > Hi,
>
> > I use version 1.28 of java libraries and I get the same error when I
> > query for my albums and I have an album that I share with
> > invitations. If all my albums are public or private the problem is not
> > present.
>
> > The error I get is:
> > com.google.gdata.util.LogUtils logException
> > ADVERTENCIA: [Line 1, Column 3806, element gphoto:access]
> > com.google.gdata.util.ParseException: Invalid value for attribute :
> > 'null'
> > Message: Invalid value for attribute : 'null'
>
> > Hope it helps.
>
> > On 23 ene, 01:52, 莊嘉峻 <[email protected]> wrote:
>
> > > Thank you Jeff, i try set all my album to public and it work. Before
> > > setting is one public and two private, it can't run. So strange.
>
> > > 2009/1/23 Jeff Fisher <[email protected]>
>
> > > > This is strange. This makes it sound like there is an empty
> > > > <gphoto:access>
> > > > element, but I can't see it in any of your public photos. Can you narrow
> > > > down the specific photo entry that is causing this problem? Is it in a
> > > > private album?
>
> > > > Cheers,
> > > > -Jeff
>
> > > > On Thu, Jan 22, 2009 at 5:19 AM, 莊嘉峻 <[email protected]> wrote:
>
> > > >> thank you Jeff, i try to using the "samples" without 'Eclipse' , but
> > > >> theget the same Error Message . the message is that
>
> > > >> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > > >> Error Message
>
> > > >> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > > >> 2009/1/21 上午 09:43:44 com.google.gdata.util.LogUtils logException
> > > >> 警告: [Line 1, Column 6160, element gphoto:access]
> > > >> com.google.gdata.util.ParseException: Invalid value for attribute :
> > > >> 'null'
> > > >> Message: Invalid value for attribute : 'null'
>
> > > >> at
> > > >> com.google.gdata.data.AttributeHelper.consumeEnum(AttributeHelper.java:425)
> > > >> at
> > > >> com.google.gdata.data.photos.GphotoAccess.consumeAttributes(GphotoAccess.java:133)
> > > >> at
> > > >> com.google.gdata.data.AbstractExtension$AttributesHandler.processEndElement(AbstractExtension.java:243)
> > > >> at com.google.gdata.util.XmlParser.endElement(XmlParser.java:985)
> > > >> at org.xml.sax.helpers.ParserAdapter.endElement(Unknown Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> > > >> Source)
> > > >> at
> > > >> com.sun.org.apache.xerces.internal.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:592)
> > > >> at com.google.gdata.client.Service.getFeed(Service.java:838)
> > > >> at pTest.main(pTest.java:24)
> > > >> Expection:[Line 1, Column 6160, element gphoto:access] Invalid value
> > > >> for
> > > >> attribute : 'null'
>
> > > >> -----------------------------------------------------------------------------------------------------------------------------------------------
>
> > > >> 2009/1/21 Jeff Fisher <[email protected]>
>
> > > >> Strange. It works just fine for me. Are you using Eclipse? I remember
> > > >>> there being some bug where if you build from the source files using
> > > >>> Eclipse
> > > >>> instead of using ant then some of the magic doesn't work right in the
> > > >>> Picasa
> > > >>> extension.
>
> > > >>> Try downloading the latest "samples" zip of the Java Client and
> > > >>> linking
> > > >>> against the pre-built JAR files:
>
> > > >>>http://code.google.com/p/gdata-java-client/
>
> > > >>> Cheers,
> > > >>> -Jeff
>
> > > >>> On Fri, Jan 16, 2009 at 4:28 PM, caton <[email protected]>
> > > >>> wrote:
>
> > > >>>> Sorry, i set it all private, but when i set it public , it return the
> > > >>>> same error message.
>
> > > >>>> thank you
> > > >>>> .
> > > >>>> On 1月17日, 上午4時56分, Jeff Fisher <[email protected]> wrote:
> > > >>>> > Are your albums all private? I don't see any public albums for that
> > > >>>> user.
>
> > > >>>> > Cheers,
> > > >>>> > -Jeff
>
> > > >>>> > On Thu, Jan 15, 2009 at 6:10 PM, caton <[email protected]>
> > > >>>> wrote:
>
> > > >>>> > > hello, I am new java developer,
> > > >>>> > > i try to use the example "Request a list of albums"(http://
> > > >>>> > > code.google.com/intl/zh-TW/apis/picasaweb/
> > > >>>> > > developers_guide_java.html#Albums<
> > > >>>>http://code.google.com/intl/zh-TW/apis/picasaweb/developers_guide_jav..
> > > >>>> .>)
> > > >>>> > > , and return error in Message
> > > >>>> > > [ Invalid value for attribute : 'null' ].
>
> > > >>>> > > But I try another example such as "List photos in album"
> > > >>>> > > (http://
> > > >>>> > > code.google.com/intl/zh-TW/apis/picasaweb/
> > > >>>> > > developers_guide_java.html#ListPhotos<
> > > >>>>http://code.google.com/intl/zh-TW/apis/picasaweb/developers_guide_jav..
> > > >>>> .>)
> > > >>>> > > , can return the photo list.
>
> > > >>>> > > if you know why? please tell me , thank you!
>
> > > >>>> > > my test code
>
> > > >>>> -----------------------------------------------------------------------------
>
> > > >>>> > > import java.net.URL;
> > > >>>> > > import java.util.Properties;
>
> > > >>>> > > import com.google.gdata.client.photos.PicasawebService;
> > > >>>> > > import com.google.gdata.data.photos.AlbumEntry;
> > > >>>> > > import com.google.gdata.data.photos.UserFeed;
>
> > > >>>> > > public class picasaTest {
>
> > > >>>> > > public static void main(String[] args) {
>
> > > >>>> > > try{
> > > >>>> > > PicasawebService myService = new
> > > >>>> > > PicasawebService("example
> > > >>>> > > Picasa");
> > > >>>> > > myService.setUserCredentials("
> > > >>>> [email protected]
> > > >>>> > > ",
> > > >>>> > > "MyPassword");
> > > >>>> > > URL feedUrl = new URL("
> > > >>>> > >http://picasaweb.google.com/data/feed/
> > > >>>> > > api/user/chiachunchuang?kind=album<
> > > >>>>http://picasaweb.google.com/data/feed/api/user/chiachunchuang?kind=album
>
> > > >>>> > > ");
>
> > > >>>> > > UserFeed myUserFeed =
> > > >>>> > > myService.getFeed(feedUrl,
> > > >>>> > > UserFeed.class);---> error in this line
>
> > > >>>> > > for (AlbumEntry myAlbum :
> > > >>>> myUserFeed.getAlbumEntries())
> > > >>>> > > {
>
> > > >>>> > > System.out.println(myAlbum.getTitle().getPlainText());
> > > >>>> > > }
> > > >>>> > > }
>
> > > >>>> > > catch(Exception ex){
>
> > > >>>> System.err.println("Expection:"+ex.getMessage());
> > > >>>> > > }
> > > >>>> > > }
>
> > > >>>> > > }
>
> > > >>>> -------------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---