Environment:
Article created on Ametys =<4.4
Steps to reproduce:
upload the attached jcr_data file to an existing Ametys article (bugs seems to be on every Ametys version).
Bug:
Impossible to edit the aforementioned article
Error:
Message : Can not dispatch request '5' : '_web' '_content.xml' '{contentId=defaultWebContent://8f6bf9bc-df2b-4650-884e-08595403b8b5, isEdition=true, viewName=default-edition, fallbackViewName=main}' Pile d'appels : org.apache.cocoon.util.location.LocatedException: Can not dispatch request '5' : '_web' '_content.xml' '{contentId=defaultWebContent://8f6bf9bc-df2b-4650-884e-08595403b8b5, isEdition=true, viewName=default-edition, fallbackViewName=main}' at org.ametys.core.ui.dispatcher.DispatchGenerator#_dispatching:198 at org.ametys.core.ui.dispatcher.DispatchGenerator#generate:95 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:483 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode#invoke:144 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.Cocoon#process:699 at org.ametys.runtime.servlet.RuntimeServlet#service:580 at javax.servlet.http.HttpServlet#service:741 at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:231 at org.apache.catalina.core.ApplicationFilterChain#doFilter:166 at org.apache.tomcat.websocket.server.WsFilter#doFilter:53 at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:193 at org.apache.catalina.core.ApplicationFilterChain#doFilter:166 at org.apache.catalina.core.StandardWrapperValve#invoke:202 at org.apache.catalina.core.StandardContextValve#invoke:96 at org.apache.catalina.authenticator.AuthenticatorBase#invoke:541 at org.apache.catalina.core.StandardHostValve#invoke:139 at org.apache.catalina.valves.ErrorReportValve#invoke:92 at org.apache.catalina.valves.AbstractAccessLogValve#invoke:688 at org.apache.catalina.core.StandardEngineValve#invoke:74 at org.apache.catalina.connector.CoyoteAdapter#service:343 at org.apache.coyote.http11.Http11Processor#service:375 at org.apache.coyote.AbstractProcessorLight#process:65 at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:868 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1594 at org.apache.tomcat.util.net.SocketProcessorBase#run:49 at java.base/java.util.concurrent.ThreadPoolExecutor#runWorker:1136 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker#run:635 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable#run:61 at java.base/java.lang.Thread#run:833 Caused by: org.apache.excalibur.source.SourceException: Exception during processing of cocoon://_web/_content.xml?contentId=defaultWebContent://8f6bf9bc-df2b-4650-884e-08595403b8b5&isEdition=true&viewName=default-edition&fallbackViewName=main& at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:277 at org.ametys.core.ui.dispatcher.DispatchGenerator#_dispatching:157 ... 69 more Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline at <map:serialize type="xml"> - resource://org/ametys/web/sitemap-front.xmap:734:48 at <map:transform type="i18n"> - resource://org/ametys/web/sitemap-front.xmap:730:48 at <map:generate type="content"> - resource://org/ametys/web/sitemap-front.xmap:724:66 at org.apache.cocoon.ProcessingException#throwLocated:145 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#handleException:955 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:585 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:483 at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:267 ... 70 more Caused by: org.xml.sax.SAXException: Unable to transform a rich text into a string org.apache.excalibur.source.SourceException: Exception during processing of cocoon://_plugins/cms/convert/docbook2htmleditor at org.ametys.cms.data.type.AbstractRichTextElementType#_singleValueToSAXForEdition:337 at org.ametys.cms.data.type.AbstractRichTextElementType#_valueToSAXForEdition:312 at org.ametys.core.model.type.AbstractElementType#_valueToSAX:293 at org.ametys.core.model.type.AbstractElementType#valueToSAXForEdition:263 at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper#dataToSAX:539 at org.ametys.plugins.repository.data.holder.ModelAwareDataHolder#dataToSAXForEdition:414 at org.ametys.cms.content.ContentSaxer#saxAttributes:333 at org.ametys.cms.content.ContentSaxer#saxBody:167 at org.ametys.web.content.ContentSaxer#saxBody:57 at org.ametys.cms.content.ContentSaxer#saxContent:142 at org.ametys.cms.content.ContentGenerator#_saxContent:121 at org.ametys.cms.content.ContentGenerator#_generateContent:86 at org.ametys.cms.content.ContentGenerator#generate:70 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 ... 73 more Caused by: org.apache.excalibur.source.SourceException: Exception during processing of cocoon://_plugins/cms/convert/docbook2htmleditor at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:277 at org.ametys.cms.transformation.AbstractRichTextTransformer#transformForEditing:151 at jdk.internal.reflect.GeneratedMethodAccessor897#invoke (Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl#invoke:43 at java.base/java.lang.reflect.Method#invoke:568 at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler#invoke:198 at jdk.proxy4/jdk.proxy4.$Proxy47#transformForEditing (Unknown Source) at org.ametys.cms.data.type.AbstractRichTextElementType#_singleValueToSAXForEdition:333 ... 86 more Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline at <map:serialize type="xml-utf8-without-xml-decl"> - resource://org/ametys/cms/sitemap.xmap:162:66 at <map:transform> - resource://org/ametys/cms/sitemap.xmap:157:82 at <map:transform type="docbook2htmledition"> - resource://org/ametys/cms/sitemap.xmap:156:60 at <map:generate type="input-stream"> - resource://org/ametys/cms/sitemap.xmap:155:52 at org.apache.cocoon.ProcessingException#throwLocated:145 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#handleException:955 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:585 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:483 at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:267 ... 93 more Caused by: org.xml.sax.SAXException: java.io.IOException: Invalid UTF-16 surrogate detected: d83e ? java.io.IOException: Invalid UTF-16 surrogate detected: d83e ? at org.apache.xml.serializer.ToStream#characters:1638 at org.apache.xalan.transformer.TransformerIdentityImpl#characters:1126 at org.apache.cocoon.xml.AbstractXMLPipe#characters:124 at org.apache.xml.serializer.ToXMLSAXHandler#characters:542 at org.apache.xml.utils.FastStringBuffer#sendSAXcharacters:999 at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM#dispatchCharactersEvents:520 at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:318 at org.apache.xalan.templates.ElemApplyTemplates#execute:178 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemLiteralResult#execute:1376 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemChoose#execute:128 at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395 at org.apache.xalan.templates.ElemApplyTemplates#execute:178 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemLiteralResult#execute:1376 at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395 at org.apache.xalan.templates.ElemApplyTemplates#execute:178 at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395 at org.apache.xalan.templates.ElemApplyTemplates#execute:178 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.transformer.TransformerImpl#applyTemplateToNode:2272 at org.apache.xalan.transformer.TransformerImpl#transformNode:1358 at org.apache.xalan.transformer.TransformerImpl#run:3449 at org.apache.xalan.transformer.TransformerHandlerImpl#endDocument:408 at org.apache.cocoon.xml.AbstractXMLPipe#endDocument:56 at org.apache.cocoon.transformation.TraxTransformer#endDocument:586 at org.ametys.cms.transformation.htmledition.AbstractHTMLEditionHandler#endDocument:87 at org.ametys.cms.transformation.htmledition.DocbookHandlers2HTMLEditorTransformer#endDocument:100 at org.apache.xerces.parsers.AbstractSAXParser#endDocument (Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl#endEntity (Unknown Source) at org.apache.xerces.impl.XMLEntityManager#endEntity (Unknown Source) at org.apache.xerces.impl.XMLEntityScanner#load (Unknown Source) at org.apache.xerces.impl.XMLEntityScanner#skipSpaces (Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher#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.excalibur.xml.impl.JaxpParser#parse:315 at org.apache.excalibur.xml.impl.JaxpParser#parse:334 at org.ametys.cms.transformation.InputStreamGenerator#generate:58 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 ... 96 more Caused by: java.io.IOException: Invalid UTF-16 surrogate detected: d83e ? at org.apache.xml.serializer.ToStream#accumDefaultEscape:1815 at org.apache.xml.serializer.ToStream#processDirty:1737 at org.apache.xml.serializer.ToStream#characters:1601 ... 140 more
Seems to be quite a similar bug to:
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8207760
- duplicates
-
CMS-11696 Can't edit an article that contains an emoji (because of its location in the richtext)
- Closed