You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gerry Kaplan <gk...@kaplansoftware.com> on 2005/10/01 23:42:34 UTC
Sitemap.handled-errors
(I think) my sitemap is correctly catching an invalid continuation, but it
is still creating a trace in the output log.
My sitemap contains the following:
<map:pipeline>
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
<map:handle-errors>
<map:select type="exception">
<map:when test="invalid-continuation">
<map:aggregate element="page">
..
</map:aggregate>
<map:transform src="presentation/navigation.xsl">
<map:parameter name="current-page" value="error.html"/>
</map:transform>
<map:call resource="layout"/>
<map:serialize type="html"/>
</map:when>
</map:select>
</map:handle-errors>
</map:pipeline>
This seems to work. But... If I have an invalid continuation, this comes out
in the log:
ERROR sitemap.handled-errors - The continuation ID
18791f568b6329031b7c3d685670011921752f5a is invalid.
org.apache.cocoon.components.flow.InvalidContinuationException: The
continuation ID 18791f568b6329031b7c3d685670011921752f5a is invalid.
at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.h
andleContinuation(FOM_JavaScriptInterpreter.java:768)
at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(C
allFunctionNode.java:123)
..
..
It seems that, if I catch the error, nothing should be logged. Am I doing
something wrong?
Please help.
Gerry