cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11518] New: - Can't use input-module sitemap param with other parameters in same expression
Date Wed, 07 Aug 2002 04:34:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11518>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11518

Can't use input-module sitemap param with other parameters in same expression

           Summary: Can't use input-module sitemap param with other
                    parameters in same expression
           Product: Cocoon 2
           Version: Current CVS
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: ekstedt@ibg.uu.se


I have set up a sitemap that contains the following, an input-module parameter
and a variable from a match

<map:pipeline type="noncaching">
  <map:match pattern="module-*">
    <map:generate src="{request:par}-{1}.xml"/>
    <map:serialize/>
  </map:match>
</map:pipeline>

Everything works as expected at first but if I edit (or touch in any way) the
sitemap, so that a reload takes place, I get this exception:

java.lang.ClassCastException: java.lang.String
	at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.dispose(PreparedVariableResolver.java:285)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.disposeTree(TreeProcessor.java:436)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeProcessor.java:386)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:321)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:160)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:585)
...

The mounted sitemap in question is unusable until I do a complete restart of
cocoon (the other sitemaps still work).

Strangely enough using two input-module parameters in the same expression is
working, ie

<map:generate src="{request:par}-{request:par2}.xml"/>


I'm using jakarta-tomcat-4.0.4-LE-jdk14 and j2sdk1.4.0_01

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message