Glad to hear that it's working for you.
That would have been my first suggestion also.
Cheers,
- Jochen

On Sep 30, 10:49 am, sean <[EMAIL PROTECTED]> wrote:
> I found that this was solved by updating the gdata library to the
> lates version 1.22.0
>
> Thanks for looking
>
> Sean
>
> On Sep 30, 2:05 pm, sean <[EMAIL PROTECTED]> wrote:
>
> > Hi
>
> > I'm having a problem when using the SpreadsheetService::getFeed()
> > method in Java when I deploy an application to a remote machine - I'm
> > not having the problem on my local development machine at all.
>
> >         SpreadsheetService service = new SpreadsheetService("myapp");
> >         _log.info("Google service version: " +
> > service.getServiceVersion());
>
> >         try {
> >             service.setUserCredentials(username, password);
> >             _log.info("Logged in to Google successfully as user " +
> > username);
> >         } catch (AuthenticationException ex) {
> >             _log.fatal("failure on setting user credentals",ex);
> >         }
>
> >         URL feedURL = new URL("http://spreadsheets.google.com/feeds/
> > spreadsheets/private/full");
> >         SpreadsheetFeed feed = (SpreadsheetFeed)
> > service.getFeed(feedURL, SpreadsheetFeed.class);
> >         List<SpreadsheetEntry> entries = feed.getEntries();
> >         _log.info("Spreadsheet list loaded.");
>
> > In the log I am seeing
>
> > 2008-09-30 12:49:29,418 INFO  [SpreadsheetHandler] Google service
> > version: GSpread-Java/1.0.8 GData-Java/null(gzip)
> > 2008-09-30 12:49:29,540 INFO  [SpreadsheetHandler] Logged in to Google
> > successfully as user xyz
> > 2008-09-30 12:49:29,885 ERROR [SpreadsheetHandler] Error getting list
> > of Spreadsheets from Google
> > com.google.gdata.util.ResourceNotFoundException: Not Found
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > <html xmlns="http://www.w3.org/1999/xhtml";><head>
> > ........
>
> > Basically the exception is returning the page not found exception that
> > would be returned in a browser if I was not logged in to Google. It
> > looks like the SpreadsheetService authenticates to google properly,
> > but then loses this context, and does not have it when it tries to
> > access the feed.
>
> > Like I say this works perfectly on my local machine (Linux and JDK
> > 1.6), but fails when I deploy it over to a machine with Solaris 10,
> > JDK 1.5 and no display. The remote machine has full access to the web
> > and can resolve spreadsheets.google.com through DNS.
>
> > If anyone has any ideas on this, please let know
>
> > Sean
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" 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-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to