3 messages in com.googlegroups.google-calendar-help-dataapiJSP Authentication
FromSent OnAttachments
Basia23 Apr 2007 13:21 
Lane LiaBraaten (Google)23 Apr 2007 19:56 
Basia25 Apr 2007 21:18 
Subject:JSP Authentication
From:Basia (Basi@gmail.com)
Date:04/23/2007 01:21:29 PM
List:com.googlegroups.google-calendar-help-dataapi

I have a java application that queries events from googlecalendar....in addition i have created a jsp page that queries events from googlecalendar. Since yesterday the jsp page is not working. It goes to the exception "Cannot set Credentials in update Event of GoogleWeb"....did something change on the Google Calendar API side?

code is below:

String CALENDAR_FEEDS_URL = "http://www.google.com/calendar/ feeds"; CalendarService calendarService; try{ URL privateFeedUrl = new URL(CALENDAR_FEEDS_URL + "/ default/private/full"); } catch(Exception e){ System.out.println("Cannot set private feed url in update Event of GoogleWeb"); return false; } calendarService = new CalendarService("stonybrook- RavenCalendar-1"); try{

calendarService.setUserCredentials("rave@gmail.com", "XXXXXXXXXX"); } catch(Exception e){ System.out.println("Cannot set Credentials in update Event of GoogleWeb"); return false; }

CalendarQuery myQuery = new CalendarQuery(privateFeedUrl); myQuery.setMinimumStartTime(info.getStartDate()); myQuery.setMaximumStartTime(info.getEndDate());

CalendarEventFeed resultFeed; try{ resultFeed = calendarService.query(myQuery, CalendarEventFeed.class); } catch(Exception e){ System.out.println("Cannot query in update Event of GoogleWeb"); return false; }