Thanks zackmac , Your solution worked :) The change in the URL did the trick!
On Dec 27 2009, 9:01 pm, zackmac <zack.macom...@gmail.com> wrote: > I've tried looping through the document list as you suggested in > number 2 by running the below code: > > for (int x = 0; x < 10; x ++) { > try { > DocumentListFeed feed = service.getFeed(documentListFeedUrl, > DocumentListFeed.class); > for (DocumentListEntry entry : feed.getEntries()) { > System.out.println(entry.getTitle().getPlainText()); > } > } > catch (Exception ex) { > System.out.println("Document List error " + x + ": " + > ex.toString()); > } > > } > > Still unfortunately getting the > "com.google.gdata.util.ResourceNotFoundException: Not Found" error - > I'm using Eclipse for my IDE - I have has imported libraries the > following: > > import java.net.URL; > > import com.google.gdata.client.docs.DocsService; > import com.google.gdata.data.docs.DocumentListEntry; > import com.google.gdata.data.docs.DocumentListFeed; > > Shouldn't need anything else, right? Also, I don't have a "bin" > folder - I have a "lib" folder though... > > Thanks. > > On Dec 27, 2:24 am, Lior Harsat <lior.har...@gmail.com> wrote: > > > > > Hi Zack, > > > I has some (bad) experience with the google docs api. > > there are two options that I know of that might cause the error you > > see. > > 1. you have a missing jar in your bin folder. > > 2. GAE strange behavior I've noticed (not sure If i should call it a > > bug). > > > I assume you have explorer option one and it is not the case. > > regarding option 2. I have witnessed the following: > > a. many times a call to the DocsService.get*** will fail with no > > apparent reason. subsequent calls may succeed. What I did is , I've > > set a retry counter and simply caught the exceptions and retried > > calling them. for most api setting the counter to 5 did the trick. for > > others I needed 10. > > b. the code examples in google docs code simply didn't work. In order > > to work around this issue I played around with the API until I was > > able to hack something. (use the local GAE for these games). > > > I know my answer may not be a solution for you but at least its nice > > to know that I wasn't the only one having issues with Google Docs > > APIs. > > > Thanx. Lior > > > On Dec 27, 3:03 am, zackmac <zack.macom...@gmail.com> wrote: > > > > I'm just trying to do an initial google docs example but am getting an > > > error at the DocumentListFeed call (DocumentListFeed feed = > > > service.getFeed(documentListFeedUrl, DocumentListFeed.class)): > > > > com.google.gdata.util.ResourceNotFoundException: Not Found > > > > This is my full code listing (with user and pwd changed): > > > > DocsService service = new DocsService("TEST"); > > > service.setUserCredentials("my_u...@gmail.com","my_pwd"); > > > URL documentListFeedUrl = new URL("http://docs.google.com/feeds/ > > > documents/private/full"); > > > DocumentListFeed feed = service.getFeed(documentListFeedUrl, > > > DocumentListFeed.class); > > > > I've read some forums on this but it seems like I have everything in > > > place that's needed... -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.