Dear Lenya-Devs,

I'm trying to implement (cocoon) error-handling in module-sitemaps like it is 
described in the Cocoon documentation on 
http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html but this 
seems not to work for whatever reason. After some days of testing and googling 
I've still no idea what I'm doing wrong.

As an example I'll use here the lucene-module, but I already tried this in some 
other modules as well:
When you enter just an asterisk (*) for searching with lucene (for example in 
the default-publication) this results in an error due to a ParseException 
(query syntax), what is ok so far.
In this case the idea was to catch any (serach)error in the module (sitemap) 
and to deliver just a 'nice' note as the search-result. So I added the 
following <map:handle-errors /> sections at the end of the module-sitemap as 
described in the mentioned documentation:

    :
    <map:pipeline>
      :
      </map:match>
      <map:handle-errors>
        <map:generate src="err-pipeline.xml"/>
        <map:serialize/>
      </map:handle-errors>
    </map:pipeline>
    <map:handle-errors>
      <map:generate src="err-pipelines.xml"/>
      <map:serialize/>
    </map:handle-errors>
  </map:pipelines>
</map:sitemap>

As both xml-files 'err-pipeline(s).xml' don't exist yet, I expected that 
something like FileNotFound occurs in the log or error message instead of the 
error I got before the change in the sitemap. But this change does not seem to 
have any impact on the resulting error.
Note: I've already verified, that the sitemap.xmap is the right one and (other) 
changes in the file are recognized and reflected in the behaviour of the system.
The cocoon version is 2.1.12-dev

It would be great if someone can give me a hint to understand that.
Many thanks ahead!
Gerd

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to