You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Vladimir S Bronnikov (JIRA)" <ji...@apache.org> on 2007/07/19 10:38:04 UTC
[jira] Updated: (COCOON-2093) Servlet Service Transformer fail with
error Invalid byte 2 of 2-byte UTF-8 sequence.
[ https://issues.apache.org/jira/browse/COCOON-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir S Bronnikov updated COCOON-2093:
-----------------------------------------
Attachment: servletservice.zip
This is an attachment in zip with two blocks. Designed in Eclipse (3.2.1).
> Servlet Service Transformer fail with error Invalid byte 2 of 2-byte UTF-8 sequence.
> ------------------------------------------------------------------------------------
>
> Key: COCOON-2093
> URL: https://issues.apache.org/jira/browse/COCOON-2093
> Project: Cocoon
> Issue Type: Bug
> Components: * Cocoon Core, - Components: Sitemap, - Servlet service framework
> Reporter: Vladimir S Bronnikov
> Fix For: 2.2-dev (Current SVN)
>
> Attachments: servletservice.zip
>
>
> Hello!
> I create two cocoon block such as in this article: "Modularize Cocoon apps (Using blocks)" (http://cocoon.zones.apache.org/dev-docs/2.2/1291_1_1.html) in section "Use a pipeline fragment".
> Only difference is that file "demo/welcome.xml" contain russian symbols (but in UTF-8 encoding - 100%). After point my browser at http://localhost:8888/myBlock1/callingTransformationService I see this exception:
> Caused by: org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
> at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:196)
> at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:204)
> at org.apache.cocoon.core.xml.avalon.DefaultSAXParser.parse(DefaultSAXParser.java:54)
> at org.apache.cocoon.components.source.util.SourceUtil.parse(SourceUtil.java:238)
> at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> What's wrong? Where can I set correct encoding (UTF-8)?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.