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
-~----------~----~----~----~------~----~------~--~---

Reply via email to