-
Bug
-
Resolution: Invalid
-
Major
-
4.2.0
-
None
-
None
I have references to undeclared metadata (repeater) in a content type (because of a mistake), and I don't have an explicit error at launching (or after) about this problem.
I only get an error if I'm trying to edit a content of this content type :
2019-02-19 15:27:57,047 ERROR [sitemap.handled-errors] (http-nio-8180-exec-8;/plugins/core-ui/servercomm/messages.xml) Resource not found. at <map:mount> - file:/D:/Projets/AmetysV4/kernel/01_Runtime/master/main/kernel/sitemap.xmap:151:82 at <map:mount> - file:/D:/Projets/AmetysV4/kernel/01_Runtime/master/main/kernel/sitemap.xmap:176:101 2019-02-19 15:27:57,048 INFO [sitemap] (http-nio-8180-exec-8;/plugins/core-ui/servercomm/messages.xml) Processing handle-errors at <map:handle-errors> - file:/D:/Projets/AmetysV4/kernel/01_Runtime/master/main/kernel/sitemap.xmap:188:23 2019-02-19 15:27:57,049 ERROR [org.ametys.plugins.core.ui] (http-nio-8180-exec-8;/plugins/core-ui/servercomm/messages.xml) Can not dispatch request '4' : '_web' '_content.xml' '{contentId=defaultWebContent://886b682c-67ac-4e6e-ae5e-a765e0b34d4f, isEditionMetadataSet=true, metadataSetName=main}' org.apache.cocoon.util.location.LocatedException: Can not dispatch request '4' : '_web' '_content.xml' '{contentId=defaultWebContent://886b682c-67ac-4e6e-ae5e-a765e0b34d4f, isEditionMetadataSet=true, metadataSetName=main}' at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:194) at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:92) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.Cocoon.process(Cocoon.java:699) at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:548) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.excalibur.source.SourceException: Cannot get input stream for cocoon://_web/_content.xml?contentId=defaultWebContent://886b682c-67ac-4e6e-ae5e-a765e0b34d4f&isEditionMetadataSet=true&metadataSetName=main& at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:253) at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:153) ... 67 more Caused by: org.xml.sax.SAXException: Could not get sitemap source cocoon://_web/_content.xml?contentId=defaultWebContent://886b682c-67ac-4e6e-ae5e-a765e0b34d4f&isEditionMetadataSet=true&metadataSetName=main& org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline. at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:380) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:215) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:68) at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:208) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:149) ... 67 more Caused by: org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline. at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:493) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:517) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:343) ... 75 more
Content type example :
<?xml version="1.0" encoding="UTF-8"?> <extension xmlns:cms="http://www.ametys.org/schema/cms" class="org.ametys.cms.contenttype.DefaultContentType"> <cms:content-type> <cms:label i18n="false">Mon type de contenu</cms:label> <cms:description i18n="false">Mon type de contenu</cms:description> <cms:default-title i18n="false">Nouveau contenu</cms:default-title> <cms:metadata name="title" type="string"> <label i18n="false">Titre</label> <description i18n="false">Titre</description> <validation> <mandatory /> </validation> </cms:metadata> <cms:repeater name="myRepeater" initial-size="0"> <label i18n="false">Mon repeater</label> <description i18n="false">Mon repeater</description> <cms:add-label i18n="false">Ajouter</cms:add-label> <cms:del-label i18n="false">Supprimer</cms:del-label> <cms:metadata name="data1" type="string"> <label i18n="false">Donnée 1</label> <description i18n="false">Donnée 1</description> </cms:metadata> </cms:repeater> <cms:metadata-set name="main" type="view"> <cms:metadata-ref name="title" /> <cms:repeater-ref name="sheets"> <cms:metadata-ref name="data1" /> </cms:repeater-ref> </cms:metadata-set> <cms:metadata-set name="main" type="edition"> <cms:metadata-ref name="title" /> <cms:repeater-ref name="sheets"> <cms:metadata-ref name="data1" /> </cms:repeater-ref> </cms:metadata-set> <cms:metadata-set name="details" type="view"> <cms:metadata-ref name="title" /> </cms:metadata-set> <cms:metadata-set name="abstract" type="view"> <cms:metadata-ref name="title" /> </cms:metadata-set> <cms:metadata-set name="link" type="view"> <cms:metadata-ref name="title" /> </cms:metadata-set> </cms:content-type> </extension>