cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12562] New: - handle-errors skipped after first transformation
Date Thu, 12 Sep 2002 06:47:40 GMT
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=12562>.
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=12562

handle-errors skipped after first transformation

           Summary: handle-errors skipped after first transformation
           Product: Cocoon 2
           Version: Current CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: ryanagler@hotmail.com


I have several places in my sitemap where there are multiple transformations 
taking place (generate-->transform-->transform-->serialize), and have 
experienced random map:handle-errors behavior when exceptions occur during the 
transformation process.

I decided to do an experiment by modifying startElement in the LogTransformer 
to throw a SAXException after it was called a few times, and here is what I 
found:

If a SAXException occurs in a transformer that is located DIRECTLY AFTER the 
generator (generate-->transformThatThrowsException-->transform-->serialize),
map:handle-errors works properly.  However, if an exception occurs in a 
transformer that comes AFTER THE FIRST transformer in the sitemap (generate--
>transform-->transformThatThrowsException-->serialize),
map:handle-errors doesn't seem to be getting called at all:  only a blank html 
page gets returned to the client, even if I specify map:handle-errors to 
serialize the error as xml.  This would also explain why map:handle-errors 
works properly for all of the single-transformation parts of my sitemap.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message