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=13410>. 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=13410 Sitemap relaod breaks w/ inputmodule and param Summary: Sitemap relaod breaks w/ inputmodule and param Product: Cocoon 2 Version: Current CVS Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: sitemap components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Whenever a sitemap instance uses both an input module and a sitemap parameter, cocoon breaks if the sitemap is subsequently modified. For example, I have the following in my sitemap: <map:match pattern="*.gif"> <map:read src="sites{URI:}/images/{1}.gif" mime-type="image/gif" /> </map:match> If I modify and save the sitemap, cocoon will throw: java.lang.ClassCastException: java.lang.String at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableRes olver.dispose(PreparedVariableResolver.java:284) at org.apache.cocoon.components.treeprocessor.TreeProcessor.disposeTree (Tre eProcessor.java:434) at org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(T reeProcessor.java:384) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process (TreePro cessor.java:320) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process (TreePro cessor.java:308) at org.apache.cocoon.Cocoon.process(Cocoon.java:595) Note this happens only if BOTH an input module and sitemap parameter are being used in the same map:read (or map:generate, map:transform, etc). For example, the following do NOT cause problems: <map:match pattern="*.gif"> <map:read src="sites/test.com/images/{1}.gif" mime-type="image/gif" /> </map:match> <map:match pattern="*.gif"> <map:read src="sites{URI:}/images/img1.gif" mime-type="image/gif" /> </map:match> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]