Kyle Marvin wrote: > Hi Mark, > >>From the stack trace, what appears to be happening is that the server > is returning some type of 2xx (successful) response to a query feed > request, but then the actual response payload doesn't contain a > application/atom+xml feed document as expected. Tthe response stream > is being passed to the XML parser, which then fails because ithe > response is either empty or is not XML. > > If your log data contains the actual query URL sent, can you send it > to me off-list? I'll try to see if I can see if we can investigate > what is happening.
Hello Kyle, I don't know how to get the query URL to log it. All I have is code that calls calendarService.insert(). The gdata library is responsible for building the URL and streaming the xml blob. It would be _great_ if the gdata library could make both of these available so I could include them in bug reports. I am still witnessing good numbers of other errors where the gdata library goes into infinitely recurring loops until the stack is smashed. I'd like to be able to give more feedback on those too. Other Google employees have tried to help on these issues too - and I'm truly thankful for the time you folks take. Though I am curious why the response is often, "tell us what you are sending us" when this is virtually impossible because it's 100% under the gdata libraries control. I'm stuck thinking I'm misinterpreting your (and others) suggestions. Perhaps you are suggesting I run an outgoing proxy to Google? I'm reluctant to run x gigabytes (just guessing) of data a day through a proxy so I can sift through the errors. Though, if I have no choice I should be able to make that work... It just seems that if the gdata creates the URL and the XML blob, it should make those available to me in a Google ServiceException. That seems more elegant, and proper and would be a whole lot easier for any developer using the gdata library to report bugs. Since I brought it up please consider my humble request for Google to make this little change. (provide the URL and xml blob in the ServiceException) If this change could be made quickly I could easily incorporate it and start sending detailed feedback right away. Thank you. > -- Kyle > > On 9/30/06, Mark Swanson <[EMAIL PROTECTED]> wrote: >> Just noticed this in my logs. The gdata API 1.0.3 is creating XML that >> can't be parsed by Google's servers. >> >> Sat 2006/Sep/30 3:32:09.375 >> PM|***|http-8080-Processor12|SWSyncSource|java.lang.Exception: sync() >> error. Google ServiceException response body: >> null >> java.lang.Exception: sync() error. Google ServiceException response body: >> null >> at >> com.wss.calendar.sync4j.GoogleCalendarSync.sync(GoogleCalendarSync.java:957) >> <snip> >> Caused by: com.google.gdata.util.ParseException: >> org.xml.sax.SAXParseException: Content is not allowed in prolog. >> at com.google.gdata.util.XmlParser.parse(Unknown Source) >> at com.google.gdata.util.XmlParser.parse(Unknown Source) >> at com.google.gdata.data.BaseFeed.parseAtom(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 >> com.wss.calendar.sync4j.GoogleCalendarSync.getEventFeed(GoogleCalendarSync.java:219) >> at >> com.wss.calendar.sync4j.GoogleCalendarSync.sync(GoogleCalendarSync.java:594) >> ... 28 more >> Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. >> at >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1269) >> at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:405) >> ... 37 more >> >> It looks like the gdata client has a bug that sends a null/empty >> document to the server. >> >> Cheers. >> >> -- >> http://www.ScheduleWorld.com/tg/ >> Free Google Calendar synchronization with Outlook, Evolution, >> cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird, >> Pocket PC/Windows Mobile. Also sync tasks, notes and contacts! >> WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support. >> > > > > -- http://www.ScheduleWorld.com/tg/ Free Google Calendar synchronization with Outlook, Evolution, cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird, Pocket PC/Windows Mobile. Also sync tasks, notes and contacts! WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
