You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Ivan (JIRA)" <ji...@apache.org> on 2011/02/17 02:45:24 UTC

[jira] Resolved: (GERONIMO-5821) after method in Tomcat 7 is not always called if any RuntimeException is thrown in the chain

     [ https://issues.apache.org/jira/browse/GERONIMO-5821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan resolved GERONIMO-5821.
----------------------------

    Resolution: Fixed

Commit changes to trunk at revision: 1071472, and 3.0-M2 at revision: 1071473

> after method in Tomcat 7 is not always called if any RuntimeException is thrown in the chain
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5821
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5821
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 3.0-M2, 3.0
>            Reporter: Ivan
>            Assignee: Ivan
>             Fix For: 3.0-M2, 3.0
>
>         Attachments: GERONIMO-5821.patch
>
>
> We use BeforeAfter in the Tomcat 7 for various usage, e.g. OWBContext, Policy. Some of the BeforeAfter implementation will attach something to the threadLocal in the before method, and remove it in the after method. But in the BeforeAfterValve, we do not have a way to make sure the after method is called. The possible scenarios are
> a. Expcetion is thrown in the next valve invocation
> b. RuntimeException is thrown in the before/after invocation chain

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira