Hi, all.

I've got one simple question. I can't find answer at documentation.

I'm using java client for Google Spreadseet Api. I'm trying to update
some cells at google spreadsheet.
In general it works, but sometimes SpreadsheetService#batch(URL,
CellFeed) throws IOException:

<error>java.io.IOException: Timeout while fetching:
http://spreadsheets.google.com/feeds/cells/tjrb8CjcFERIMNhMK-vpekw/od6/private/full/batch
        at
com.google.appengine.api.urlfetch.URLFetchServiceImpl.handleApplicationException
(URLFetchServiceImpl.java:69)
        at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch
(URLFetchServiceImpl.java:42)
        at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.fetchResponse(URLFetchServiceStreamHandler.java:408)
        at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getInputStream(URLFetchServiceStreamHandler.java:290)
        at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getResponseCode(URLFetchServiceStreamHandler.java:131)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:535)
        at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:515)
        at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:515)
        at com.google.gdata.client.Service.batch(Service.java:1372)
        at com.google.gdata.client.GoogleService.batch(GoogleService.java:
756)
</error>

It's happenning very often. Could you explain me why? I've got good
internet connection and it isn't problem.
Also, could you tell me what I should do futher?

Let me explain.situation. I want to repeat the same request to google
service if it has failed. For example, I want to update some cells
with batching:

<code>
                CellFeed feed = new CellFeed();

                int index = 1;
                for ( CellEntry entry : entries ) {// entries - list of 
CellEntry to
update.
                        BatchUtils.setBatchId( entry, "ID" + (index ++) );
                        BatchUtils.setBatchOperationType( entry,
BatchOperationType.UPDATE );
                        feed.getEntries().add( entry );
                }

                CellFeed batchedFeed = spreadsheetService.batch( batchUrl, feed 
);
</code>

When I catch IOException I want to repeat the same operation. But when
I do this status of batched entry sais that there is version conflict.
What I should do?

Looking forward to your reply. And thanks.

Best regards, Alexander.
--~--~---------~--~----~------------~-------~--~----~
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 Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to