Uploaded image for project: 'Calendar'
  1. Calendar
  2. CAL-55

Error in the service org.ametys.plugins.calendar.Calendar when end date is before start date and using "Content in the same page"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.6.0, 2.0.0
    • None
    • None
    • None
    • UC-357

      How to reproduce

      • insert the service org.ametys.plugins.calendar.Calendar (small calendar)
      • create a content news that has an end date before the start date
      • check "content on the same page"

      Actual behavior

      2016-03-14 09:05:53,923 ERROR [org.ametys.web.repository.PageGenerator] (http-bio-8080-exec-7;/www/fr/vie-etudiante/culture/agenda-culture.html) Unable to display zone item
      org.apache.cocoon.ProcessingException: Failed to process pipeline
              at [TransformerException] - resource://org/ametys/plugins/calendar/pages/services/calendar/calendar_1.3.xsl:284:156
              at <map:serialize type="xhtml"> - resource://org/ametys/plugins/calendar/sitemap.xmap:56:46
              at <map:transform type="i18n"> - resource://org/ametys/plugins/calendar/sitemap.xmap:52:44
              at <map:transform> - resource://org/ametys/plugins/calendar/sitemap.xmap:51:53
              at <map:generate type="events"> - resource://org/ametys/plugins/calendar/sitemap.xmap:44:45
              at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:145)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:953)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:583)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
              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.toSAX(SourceUtil.java:181)
              at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:140)
              at org.ametys.web.repository.PageGenerator._saxSource(PageGenerator.java:590)
              at org.ametys.web.repository.PageGenerator._saxZoneItem(PageGenerator.java:550)
              at org.ametys.web.repository.PageGenerator._saxZoneItems(PageGenerator.java:380)
              at org.ametys.web.repository.PageGenerator._saxZone(PageGenerator.java:311)
              at org.ametys.web.repository.PageGenerator.generate(PageGenerator.java:233)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
              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:579)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
              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.Cocoon.process(Cocoon.java:699)
              at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1159)
              at org.ametys.runtime.servlet.RuntimeServlet._doService(RuntimeServlet.java:135)
              at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:92)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.commons.lang.exception.NestableRuntimeException: javax.xml.transform.TransformerException: java.lang.IllegalArgumentException: The end instant must be greater or equal to the start
              at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:604)
              at org.ametys.plugins.calendar.events.EventsGenerator.generate(EventsGenerator.java:241)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
              ... 62 more
      Caused by: javax.xml.transform.TransformerException: java.lang.IllegalArgumentException: The end instant must be greater or equal to the start
              at org.apache.xpath.XPath.bool(XPath.java:441)
              at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)
              at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:425)
              at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:265)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
              at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
              at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
              at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
              at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
              at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
              at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
              at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
              at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
              at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3447)
              at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:408)
              at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
              at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:586)
              ... 64 more
      Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: The end instant must be greater or equal to the start
              at org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:490)
              at org.apache.xpath.axes.AxesWalker.nextNode(AxesWalker.java:372)
              at org.apache.xpath.axes.WalkingIterator.nextNode(WalkingIterator.java:195)
              at org.apache.xpath.axes.LocPathIterator.asNode(LocPathIterator.java:302)
              at org.apache.xpath.axes.LocPathIterator.bool(LocPathIterator.java:320)
              at org.apache.xpath.XPath.bool(XPath.java:412)
              ... 104 more
      

            laurence Laurence Aumeunier
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: