Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11534

Open a content with duplicated attributes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.6.0
    • 4.6.0
    • None
    • None
    • 4.6 RC4

      On opening a content with attributes appearing twice ore more:

      Date:			Thu Feb 16 22:58:49 CET 2023 (1676584729607)
      Thread:		http-nio-8280-exec-7
      Message #:	249
      Level:		ERROR
      NDC:			
      Category:	sitemap.handled-errors
      Message:		Failed to process pipeline
      	at <map:serialize type="xml"> - file:/D:/Projets/MyProject/web/plugins/my-formations/sitemap.xmap:30:48
      	at <map:transform type="i18n"> - file:/D:/Projets/MyProject/web/plugins/my-formations/sitemap.xmap:26:48
      	at <map:generate type="content"> - file:/D:/Projets/MyProject/web/plugins/my-formations/sitemap.xmap:20:66
      	at <map:serialize type="xml"> - file:/D:/Projets/MyProject/web/plugins/my-ws/sitemap.xmap:71:48
      	at <map:transform type="i18n"> - file:/D:/Projets/MyProject/web/plugins/my-ws/sitemap.xmap:67:48
      	at <map:mount> - file:/D:/Projets/AmetysV4/kernel/07_CMS/master/main/workspace-cms/sitemap.xmap:203:81
      	at <map:mount> - file:/D:/Projets/AmetysV4/kernel/01_Runtime/master/main/kernel/sitemap.xmap:189:109
      Location:	org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      Thrown:
      org.apache.cocoon.ProcessingException: Failed to process pipeline
      	at <map:serialize type="xml"> - file:/D:/Projets/MyProject/web/plugins/my-formations/sitemap.xmap:30:48
      	at <map:transform type="i18n"> - file:/D:/Projets/MyProject/web/plugins/my-formations/sitemap.xmap:26:48
      	at <map:generate type="content"> - file:/D:/Projets/MyProject/web/plugins/my-formations/sitemap.xmap:20:66
      	at <map:serialize type="xml"> - file:/D:/Projets/MyProject/web/plugins/my-ws/sitemap.xmap:71:48
      	at <map:transform type="i18n"> - file:/D:/Projets/MyProject/web/plugins/my-ws/sitemap.xmap:67:48
      	at <map:mount> - file:/D:/Projets/AmetysV4/kernel/07_CMS/master/main/workspace-cms/sitemap.xmap:203:81
      	at <map:mount> - file:/D:/Projets/AmetysV4/kernel/01_Runtime/master/main/kernel/sitemap.xmap:189:109
      	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:145)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:955)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:585)
      	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:782)
      	at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
      	at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:101)
      	at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:321)
      	at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:125)
      	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.ActTypeNode.invoke(ActTypeNode.java:139)
      	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:641)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.ClassCastException: class org.ametys.runtime.model.TemporaryViewReference cannot be cast to class org.ametys.runtime.model.ViewItemAccessor (org.ametys.runtime.model.TemporaryViewReference and org.ametys.runtime.model.ViewItemAccessor are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @730c7dfd)
      	at org.ametys.runtime.model.ViewHelper._mergeDuplicatedItems(ViewHelper.java:607)
      	at org.ametys.runtime.model.ViewHelper._mergeDuplicatedItems(ViewHelper.java:592)
      	at org.ametys.runtime.model.ViewHelper._mergeDuplicatedItems(ViewHelper.java:592)
      	at org.ametys.runtime.model.ViewHelper._mergeDuplicatedItems(ViewHelper.java:607)
      	at org.ametys.runtime.model.ViewHelper._mergeDuplicatedItems(ViewHelper.java:607)
      	at org.ametys.runtime.model.ViewHelper.mergeDuplicatedItems(ViewHelper.java:574)
      	at org.ametys.cms.content.ContentGenerator._getView(ContentGenerator.java:202)
      	at org.ametys.cms.content.ContentGenerator._saxContent(ContentGenerator.java:114)
      	at org.ametys.cms.content.ContentGenerator._generateContent(ContentGenerator.java:86)
      	at org.ametys.cms.content.ContentGenerator.generate(ContentGenerator.java:70)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      	... 66 more

            cbayle Caroline Bayle
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: