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