9 messages in com.googlegroups.google-calendar-help-dataapiRe: Tons of SAX exceptions when calli...
FromSent OnAttachments
bfawlty7830 Jun 2006 11:12 
Kyle Marvin30 Jun 2006 13:07 
bfawlty7805 Jul 2006 17:12 
Kyle Marvin07 Jul 2006 05:56 
bfawlty7811 Jul 2006 13:34 
Frank Mantek12 Jul 2006 00:38 
Kyle Marvin12 Jul 2006 12:12 
Kyle Marvin12 Jul 2006 12:14 
bfawlty7813 Jul 2006 12:52 
Subject:Re: Tons of SAX exceptions when calling GoogleService.getFeed()
From:bfawlty78 (hen@prowebsurfer.com)
Date:07/13/2006 12:52:34 PM
List:com.googlegroups.google-calendar-help-dataapi

Hi Kyle. Hope you're feeling better now. Thanks for your continued support. I switched parser per your suggestion, but I get the same exception. Would you be able to try it if I invited your user to the group? The stack trace follows below. Thanks,

Basil

Getting feed for URL: http://groups.google.com/group/husqvarna_tinkering/feed/rss_v2_0_topics.xml?num=50 com.pws.search.web.SearchFailedException: Invalid XML: Error on line 136: The string "--" is not permitted within comments. at com.pws.search.web.GoogleGroupSearch.search(GoogleGroupSearch.java:193) at com.pws.search.web.GoogleGroupSearchTestCase.testSearchGroup(GoogleGroupSearchTestCase.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.doRun(TestRunner.java:109) at junit.textui.TestRunner.run(TestRunner.java:72) at junit.textui.TestRunner.run(TestRunner.java:57) at com.pws.search.web.GoogleGroupSearchTestCase.main(GoogleGroupSearchTestCase.java:92) Caused by: com.sun.syndication.io.ParsingFeedException: Invalid XML: Error on line 136: The string "--" is not permitted within comments. at com.sun.syndication.io.WireFeedInput.build(WireFeedInput.java:174) at com.sun.syndication.io.SyndFeedInput.build(SyndFeedInput.java:122) at com.pws.search.web.GoogleGroupSearch.search(GoogleGroupSearch.java:186) ... 18 more Caused by: org.jdom.input.JDOMParseException: Error on line 136: The string "--" is not permitted within comments. at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851) at com.sun.syndication.io.WireFeedInput.build(WireFeedInput.java:170) ... 20 more Caused by: org.xml.sax.SAXParseException: The string "--" is not permitted within comments. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:771) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:771) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1730) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453) ... 22 more F Time: 3.444 There was 1 failure: 1) testSearchGroup(com.pws.search.web.GoogleGroupSearchTestCase)junit.framework.AssertionFailedError: Invalid XML: Error on line 136: The string "--" is not permitted within comments. at com.pws.search.web.GoogleGroupSearchTestCase.testSearchGroup(GoogleGroupSearchTestCase.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.pws.search.web.GoogleGroupSearchTestCase.main(GoogleGroupSearchTestCase.java:92)

Kyle Marvin wrote:

Hi Basil,

Sorry for the delay in responding, as Frank mentioned I've been "under the weather". If I save the example feed XML fragment you provided to a file and then parse it using the Rome FeedReader sample, it works just fine.

This says the XML data itself is OK and points towards some type of parser configuration (or bug) that's different between the two environments.

From the stack trace, it looks like you are using the Apache Crimson parser. Have you tried configuring another parser? Try setting the java.xml.parsers.SAXParserFactory property to "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl" (the default bundled Xerces impl in JDK 1.5) and see if the error still occurs.

On 7/11/06, bfawlty78 <hen@prowebsurfer.com> wrote:

Hi Kyle. Did you get the XML file and the code snippet I emailed you? Just wondering if you guys had a chance to test against it yet. I appreciate all your efforts. Thanks much,