You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/08/30 14:03:06 UTC

DO NOT REPLY [Bug 30937] New: - Global parameters input module exception when concatenating

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30937>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30937

Global parameters input module exception when concatenating

           Summary: Global parameters input module exception when
                    concatenating
           Product: Cocoon 2
           Version: 2.1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: lmorandini@ieee.org


In Cocoon 2.1.3, the concatenation of a global parameter and a string used to work:
<map:parameter name="image-path"
    value="{global:app-path}\resources\images\"/>

But in Cocoon 2.1.5 the same code gives:
<<
Message: Failed to load sitemap from file:/c:/web/noria/noriadev215/sitemap.xmap
Description: org.apache.cocoon.ProcessingException: Failed to load sitemap from
file:/c:/web/noria/noriadev215/sitemap.xmap:
org.apache.avalon.framework.configuration.ConfigurationException: Error while
creating node 'transform' at file:/c:/web/noria/noriadev215/sitemap.xmap:628:49
...
cause

java.lang.StringIndexOutOfBoundsException: String index out of range: 18
request-uri
/cocoon215/noriadev/refresh-map-locate.pdf
full exception chain stacktrace

Original Exception:
org.apache.avalon.framework.configuration.ConfigurationException: Error while
creating node 'transform' at file:/c:/web/noria/noriadev215/sitemap.xmap:628:49
    at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodesList(AbstractParentProcessingNodeBuilder.java:128)
    at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:136)
    at
org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder.buildNode(MatchNodeBuilder.java:77)
    at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNodeBuilder.buildNode(PipelineNodeBuilder.java:113)
    at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.buildNode(PipelinesNodeBuilder.java:65)
    at
...