Any luck dissabling the warning? If yes, could you post a logging.properties entry or any steps to underake?
thanks, Fred On 18 Dez. 2009, 19:56, Pion <onlee2...@gmail.com> wrote: > By using the appropriate URLs as shown on the example, > // The base URL for a user's calendar metafeed (needs a username > appended). > private static final String METAFEED_URL_BASE = > "http://www.google.com/calendar/feeds/"; > > // The string to add to the user's metafeedUrl to access the event > feed for their primary calendar. > private static final String EVENT_FEED_URL_SUFFIX = "/private/full"; > > I could retrieve the calendars. But the log info messages below still > show: > Dec 18, 2009 3:25:34 PM > org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded > INFO: Redirect requested but followRedirects is disabled > > Dec 18, 2009 3:25:35 PM > org.apache.commons.httpclient.HttpMethodBasegetResponseBody > WARNING: Going to buffer response body of large or unknown size. > Using getResponseBodyAsStream instead is recommended. > > On Dec 18, 9:44 am, Pion <onlee2...@gmail.com> wrote: > > > I have just compiled and executed the Google Calendar sample > > fromhttp://code.google.com/p/gdata-java-client/downloads/list(version > > 1.40.1) locally without using any GAE stuffs. EventFeedDemo.java > > > private static void printUserCalendars(CalendarService service) > > throws IOException, ServiceException { > > // Send the request and receive the response: > > CalendarFeed resultFeed = service.getFeed(metafeedUrl, > > CalendarFeed.class); > > > System.out.println("Your calendars:"); > > System.out.println(); > > for (int i = 0; i < resultFeed.getEntries().size(); i++) { > > CalendarEntry entry = resultFeed.getEntries().get(i); > > System.out.println("\t" + entry.getTitle().getPlainText()); > > } > > System.out.println(); > > } > > > It prints 2 calendars. On the other hand, using similar code but > > running on GAE, it returns only 1 calendar. > > > I am using GAE 1.3. > > > On Dec 18, 7:46 am, Pion <onlee2...@gmail.com> wrote: > > > > I have the following code snippets (remove exceptions code for > > > brevity) which is based on the example > > > onhttp://code.google.com/apis/calendar/data/2.0/developers_guide_java.h... > > > > String appName = "companyName-appName-1.0"; > > > CalendarService myService = new CalendarService > > > (appName); > > > > String id = "myEmail"; > > > String password = "myPassword"; > > > String host = "http://www.google.com/calendar/feeds/" > > > + id + "@gmail.com/owncalendars/full"; > > > myService.setUserCredentials(id, password); > > > URL feedUrl = new URL(host); > > > CalendarFeed resultFeed = myService.getFeed(feedUrl, > > > CalendarFeed.class); > > > > for (int i = 0; i < resultFeed.getEntries().size(); i++) { > > > entry = resultFeed.getEntries().get(i); > > > logger.info(entry.getTitle().getPlainText()) > > > } > > > > I receive the following log info: > > > > Dec 18, 2009 3:25:34 PM > > > org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded > > > INFO: Redirect requested but followRedirects is disabled > > > > Dec 18, 2009 3:25:35 PM org.apache.commons.httpclient.HttpMethodBase > > >getResponseBody > > > WARNING: Going to buffer response body of large or unknown size. Using > > > getResponseBodyAsStream instead is recommended. > > > > Dec 18, 2009 3:25:35 PM com.galensystems.pchr.server.DoServer > > > doCalendar > > > INFO: myem...@gmail.com > > > > I am wondering if I am doign something wrong and have to worry the > > > above INFO and WARNING. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.