geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-5821) after method in Tomcat 7 is not always called if any RuntimeException is thrown in the chain
Date Wed, 16 Feb 2011 15:19:57 GMT

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

Ivan updated GERONIMO-5821:
---------------------------

    Attachment: GERONIMO-5821.patch

Propose a patch, not sure whether there is a simpler way.

> 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

        

Mime
View raw message