Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1866

jx:comment doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.10, 2.2
    • Blocks: Templating
    • None

    Description

      jx:comment produces following stack trace in trunk:

      java.lang.ArrayIndexOutOfBoundsException: -1
      at org.apache.xalan.serialize.SerializerToXML.comment(SerializerToXML.java:1298)
      at org.apache.xalan.transformer.TransformerIdentityImpl.comment(TransformerIdentityImpl.java:1272)
      at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:228)
      at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:228)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.cocoon.core.container.spring.PoolableFactoryBean$ProxyHandler.invoke(PoolableFactoryBean.java:340)
      at $Proxy5.comment(Unknown Source)
      at org.apache.xalan.transformer.ResultTreeHandler.comment(ResultTreeHandler.java:624)
      at org.apache.xpath.objects.XString.dispatchAsComment(XString.java:329)
      at org.apache.xalan.transformer.ClonerToResultTree.cloneToResultTree(ClonerToResultTree.java:248)
      at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:155)
      at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
      at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
      at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
      at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
      at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
      at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)
      at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)
      at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3372)
      at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
      at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:54)
      at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:577)

      Attachments

        Issue Links

          Activity

            People

              joerg.heinicke@gmx.de Jörg Heinicke
              reinhard@apache.org Reinhard Poetz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: