Hi, I can't figure out what I'm doing wrong. using Cocoon 2.1.9 I'm trying to catch this exception from org.exist.cocoon.XQueryGenerator: Caused by: org.exist.xquery.TerminatedException$TimeoutException: The query exceeded the predefined timeout and has been killed. [at line 13, column 2] at org.exist.xquery.XQueryWatchDog.proceed(XQueryWatchDog.java:121)
In the site map: <map:selector logger="sitemap.selector.exception" name="exception" src="org.apache.cocoon.selection.ExceptionSelector"> <exception class="org.exist.xquery.TerminatedException$TimeoutException" name="xmldb-timeout" unroll="true"/> <map:handle-errors> <map:select type="exception"> <map:when test="xmldb-timeout"> <map:generate type="notifying"/> <map:transform src="context://site/stylesheets/error-report.xsl"> The test always fails for "xmldb-timeout" and falls through to <map:otherwise> I've tried with and without unroll. The debug log does not give any clues. Any idea what I'm doing wrong? Thanks, gary