logo       

Bug: Java gdata API 1.0.3 isn't handling redirects: msg#00217

org.google.api.calendar

Subject: Bug: Java gdata API 1.0.3 isn't handling redirects


Hello,

When I insert an entry sometimes I get a RedirectRequiredException. I
couldn't find any documentation on how to handle this. The message is,
"Moved Temporarily". So, shouldn't the Java API simply try again at the
new URL?

Or, is it my responsibility to wrap all of the
CalendarService.[insert,...] methods in a try/catch to do this myself
like this:

try {
newEventEntry = calendarService.insert(feedUrl, eventEntry);
} catch(RedirectRequiredException ex) {
// How do I handle this?
newEventEntry = calendarService.insert(
new URL(ex.getRedirectLocation()), eventEntry);
}

Thanks.

Mon 2006/Sep/25 10:15:31.866
AM|***|http-8080-Processor5|GoogleCalendarSync|com.google.gdata.util.RedirectRequiredException:

Moved Temporarily
com.google.gdata.util.RedirectRequiredException: Moved Temporarily
at
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(Unknown
Source)
at
com.google.gdata.client.http.HttpGDataRequest.checkResponse(Unknown Source)
at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.Service.insert(Unknown Source)
at com.google.gdata.client.GoogleService.insert(Unknown Source)


--
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/tg/
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise