cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Nah <jas...@oopl.com.au>
Subject RE: Sitemap parsing error?
Date Fri, 06 Jun 2003 00:08:44 GMT
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:cocoon@leverageweb.com]
Sent: Thursday, June 05, 2003 10:09 PM
To: cocoon-users@xml.apache.org
Subject: Re: Sitemap parsing error?


And your sure you haven't typed any stray upsilon characters? ;)
&upsilon; = &#965; = &#x75;

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,
&#x75;.
>         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,
&#x75;.
>         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)
>
>The end of the sitemap is this:
>    <map:handle-errors>
>     <map:transform src="context://stylesheets/system/error2html.xsl"/>
>     <map:serialize status-code="500"/>
>    </map:handle-errors>
>
>   </map:pipeline>
>  </map:pipelines>
>
></map:sitemap>
><!-- end of file -->
>
>What am I missing??
>
>Cheers,
>Jason


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message