12 messages in com.googlegroups.google-picasa-data-apiRe: Newbie question
FromSent OnAttachments
kani27 Jun 2007 09:20 
kani27 Jun 2007 10:33 
Sven27 Jun 2007 10:35 
kani27 Jun 2007 10:41 
kani27 Jun 2007 10:42 
Sven27 Jun 2007 10:47 
kani27 Jun 2007 10:54 
Sven27 Jun 2007 10:59 
kani27 Jun 2007 11:00 
kani27 Jun 2007 11:05 
Sven27 Jun 2007 11:09 
kani27 Jun 2007 11:16 
Subject:Re: Newbie question
From:kani (jain@gmail.com)
Date:06/27/2007 10:33:02 AM
List:com.googlegroups.google-picasa-data-api

I was able to get the same code to work with the new gdata client library (1.12). Although this time I'm using the jar files to compile the program, previously I was using the complete source. Now I really would like to know how did that make a difference??

Kind regards Animesh

I think I'm doing something obviously wrong, but just haven't been able to figure out. I'm trying the sample code from the Gdata picasa documentation on the web. I wrote a simple class -

public class PicasaFeedTest { public static void main(String[] args) throws IOException, ServiceException { URL albumsUrl = new URL("http://picasaweb.google.com/data/feed/api/user/jain.kani? kind=album"); PicasawebService myService = new PicasawebService("exampleCo- exampleApp-1");

// Send the request for the user's albums. UserFeed myUserFeed = myService.getFeed(albumsUrl, UserFeed.class);

// Print the title of the returned feed: System.out.println(myUserFeed.getTitle().getPlainText()); }

}

No exceptions are thrown and all I get is log messages that say Jun 27, 2007 9:43:59 PM com.google.gdata.util.XmlParser$ElementHandler getChildHandler INFO: No child handler for name. Treating as an extension element. Jun 27, 2007 9:43:59 PM com.google.gdata.util.XmlParser$ElementHandler getChildHandler INFO: No child handler for location. Treating as an extension element. Jun 27, 2007 9:43:59 PM com.google.gdata.util.XmlParser$ElementHandler getChildHandler INFO: No child handler for access. Treating as an extension element. Jun 27, 2007 9:43:59 PM com.google.gdata.util.XmlParser$ElementHandler getChildHandler INFO: No child handler for timestamp. Treating as an extension element. Jun 27, 2007 9:43:59 PM com.google.gdata.util.XmlParser$ElementHandler getChildHandler INFO: No child handler for numphotos. Treating as an extension element. and so on....

myUserFeed.getAlbumEntries() is blank. Although I do have publicly shared albums (http://picasaweb.google.com/jain.kani). Even the feed is showing the data when I enter the URL in my browser. Does someone know whats going wrong. Help would be greatly appreciated :)