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 2002/10/08 17:15:17 UTC
DO NOT REPLY [Bug 13410] New: -
Sitemap relaod breaks w/ inputmodule and param
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: cocoon-dev@xml.apache.org
ReportedBy: ryanagler@hotmail.com
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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org