Thanks so much Ray for the information. I'm not sure how to handle the
redirect through Java. The generated exception has a redirect URL but
how to use the URL and how to handle it is not quite clear to me.. So
help me in the same...

Thanks,
-SaM

On Jun 10, 12:08 am, Ray Baxter <[EMAIL PROTECTED]> wrote:
> On Jun 9, 2008, at 1:48 PM, sam_thrust wrote:
>
> > For last few days I have been getting the following exception. I'm not
> > sure the cause. The strange thing is sometimes it happens and
> > sometimes it doesnt. Can anyone tell me the reason? I would be
> > grateful..
>
> This is normal behavior for the calendar API (see for 
> example,http://code.google.com/apis/calendar/developers_guide_protocol.html#R...
>   ). Your code ought to handle redirects when they occur.
>
> I haven't looked at the code for all the APIs but I was under the
> impression that they all handled the redirects automatically. It seems
> from your example that the Java API doesn't.
>
> It's interesting that you see this sometimes and sometimes you don't.
> I haven't done a systematic study or any logfile parsing, but I have
> never performed a request for a calendar feed without seeing a
> redirect, unless I have passed in the session cookie.
>
> Ray
>
> > Jun 9, 2008 3:24:38 PM googleback.GoogleEvents getEvent
> > SEVERE: null
> > com.google.gdata.util.RedirectRequiredException: Moved Temporarily
> > <HTML>
> > <HEAD>
> > <TITLE>Moved Temporarily</TITLE>
> > </HEAD>
> > <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> > <H1>Moved Temporarily</H1>
> > The document has moved <A HREF="http://www.google.com/calendar/feeds/
> > default/private/full?q=Room+%23700&amp;start-
> > min=2008-06-09T00%3A00%3A00.000&amp;start-
> > max
> > =
> > 2008
> > -06-09T23%3A59%3A59.000&amp;gsessionid=lCGdRDRSo7HwcMFjaFDhHA">here</
> > A>.
> > </BODY>
> > </HTML>
>
> >    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.getFeed(Unknown Source)
> >    at com.google.gdata.client.Service.getFeed(Unknown Source)
> >    at com.google.gdata.client.GoogleService.getFeed(Unknown Source)
> >    at com.google.gdata.client.Service.query(Unknown Source)
> >    at com.google.gdata.client.Service.query(Unknown Source)
> >    at googleback.GoogleEvents.getEvent(GoogleEvents.java:115)
> >    at ui.CalendarPanel.loadEvents(CalendarPanel.java:322)
> >    at ui.CalendarPanel.<init>(CalendarPanel.java:45)
> >    at ui.ComputerRRApplet.init(ComputerRRApplet.java:90)
> >    at sun.applet.AppletPanel.run(Unknown Source)
> >    at java.lang.Thread.run(Unknown Source)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to