RE: Sitemap parsing error?
You're probably going to need someone who is better with encoding subtleties than myself. But one thing you need to pay attention to is that what the file declares for itself (UTF-8) is compatible with the encoding of the file itself as actually performed by your editor. The fact that you've run dos2unix on it is very interesting in this regard - who knows what encoding that uses. Also, if the WAR extraction didn't extract the full sitemap that's another possible clue. It may have thought it reached an end of file - possibly because of a single/double byte issue. If no one picks up on this thread who knows more, I'd recommend renaming it to reflect that you think you have an encoding mismatch and someone who is solid in that area may take notice. HTH, Geoff -Original Message- From: Jason Nah [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 8:09 PM To: '[EMAIL PROTECTED]' Subject: RE: Sitemap parsing error? Hi Geoff, The encoding stated at the top of the XML file is UTF-8 For some reason the WAR extraction process didn't quite extract the full sitemap file (could have been corrupted.) I manually ftp the file across from a windows box and dos2unixed it... What's a possible fix? It appears all the text is in straight ascii... Cheers, Jason -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:09 PM To: [EMAIL PROTECTED] Subject: Re: Sitemap parsing error? And your sure you haven't typed any stray upsilon characters? ;) υ = υ = u Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: >Howdy Guys > >I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun >One App Server 7. > >I've installed the WAR file and it runs fine... my final problem appears >to be a cocoon >problem. > >I am able to start up the application server fine... and no errors are >logged. However, when >i invoke the servlet... i get the following problems: > > > >Cocoon 2 - Internal server error > >type fatal > >message Illegal character at end of document, u. > >description org.xml.sax.SAXParseException: Illegal character at end of >document, u. > >sender org.apache.cocoon.servlet.CocoonServlet > >source Cocoon servlet > >stack-trace > >org.xml.sax.SAXParseException: Illegal character at end of document, u. > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at > org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat eCode(LogicsheetCodeGenerator.java:173) > > at > org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate Code(AbstractMarkupLanguage.java:390) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:390) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:353) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:312) > > at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) > at java.lang.Thread.run(Thread.java:536) > >request-uri > >/cocoon/ > >path-info >--- > >Looking at the logs in WEB-INF/logs, I find the following curious >statement in the access.log: >ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) >service-j2ee/CocoonServl >et: Problem with Cocoon servlet >org.xml.sax.SAXParseException: Illegal character at end of document, u. > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371
RE: Sitemap parsing error?
Title: RE: Sitemap parsing error? Geoff, I've also noticed the following statement in access.log upon startup... Using configuration file: /WEB-INF/cocoon.xconf parent-component-manager not set - defaulting to null. container-encoding was not set - defaulting to ISO-8859-1 form-encoding was not set - defaulting to null. Cheers, Jason -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 05, 2003 10:09 PM To: [EMAIL PROTECTED] Subject: Re: Sitemap parsing error? And your sure you haven't typed any stray upsilon characters? ;) υ = υ = u Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: >Howdy Guys > >I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun >One App Server 7. > >I've installed the WAR file and it runs fine... my final problem appears >to be a cocoon >problem. > >I am able to start up the application server fine... and no errors are >logged. However, when >i invoke the servlet... i get the following problems: > > > >Cocoon 2 - Internal server error > >type fatal > >message Illegal character at end of document, u. > >description org.xml.sax.SAXParseException: Illegal character at end of >document, u. > >sender org.apache.cocoon.servlet.CocoonServlet > >source Cocoon servlet > >stack-trace > >org.xml.sax.SAXParseException: Illegal character at end of document, u. > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at > org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) > > at > org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) > > at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) > at java.lang.Thread.run(Thread.java:536) > >request-uri > >/cocoon/ > >path-info >--- > >Looking at the logs in WEB-INF/logs, I find the following curious >statement in the access.log: >ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) >service-j2ee/CocoonServl >et: Problem with Cocoon servlet >org.xml.sax.SAXParseException: Illegal character at end of document, u. > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at > org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. >generateCode(LogicsheetCodeGenerator.java:173) > at > org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g >enerateCode(AbstractMarkupLanguage.java:390) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. >generateResource(ProgramGeneratorImpl.java:390) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. >createResource(ProgramGeneratorImpl.java:353) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. >load(ProgramGeneratorImpl.java:312) > at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) > at java.lang.Thread.run(Thread.java:536) > >In the sitemap.log i get: >ERRO
RE: Sitemap parsing error?
Title: RE: Sitemap parsing error? Hi Geoff, The encoding stated at the top of the XML file is UTF-8 For some reason the WAR extraction process didn't quite extract the full sitemap file (could have been corrupted.) I manually ftp the file across from a windows box and dos2unixed it... What's a possible fix? It appears all the text is in straight ascii... Cheers, Jason -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 05, 2003 10:09 PM To: [EMAIL PROTECTED] Subject: Re: Sitemap parsing error? And your sure you haven't typed any stray upsilon characters? ;) υ = υ = u Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: >Howdy Guys > >I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun >One App Server 7. > >I've installed the WAR file and it runs fine... my final problem appears >to be a cocoon >problem. > >I am able to start up the application server fine... and no errors are >logged. However, when >i invoke the servlet... i get the following problems: > > > >Cocoon 2 - Internal server error > >type fatal > >message Illegal character at end of document, u. > >description org.xml.sax.SAXParseException: Illegal character at end of >document, u. > >sender org.apache.cocoon.servlet.CocoonServlet > >source Cocoon servlet > >stack-trace > >org.xml.sax.SAXParseException: Illegal character at end of document, u. > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at > org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) > > at > org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) > > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) > > at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) > at java.lang.Thread.run(Thread.java:536) > >request-uri > >/cocoon/ > >path-info >--- > >Looking at the logs in WEB-INF/logs, I find the following curious >statement in the access.log: >ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) >service-j2ee/CocoonServl >et: Problem with Cocoon servlet >org.xml.sax.SAXParseException: Illegal character at end of document, u. > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at > org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. >generateCode(LogicsheetCodeGenerator.java:173) > at > org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g >enerateCode(AbstractMarkupLanguage.java:390) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. >generateResource(ProgramGeneratorImpl.java:390) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. >createResource(ProgramGeneratorImpl.java:353) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. >load(ProgramGeneratorImpl.java:312) > at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) > at java.lang.Thread.run(Thread.java:536)
Re: Sitemap parsing error?
And your sure you haven't typed any stray upsilon characters? ;) υ = υ = u Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) In the sitemap.log i get: ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E rror compiling sitemap org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator