It's probably firing twice. As of Stripes 1.5 you no longer have to
explicitly list BeforeAfterMethodInterceptor in the Interceptor.Classes
config param. If it's there, try removing it.

-Ben

On Wed, Aug 26, 2009 at 12:34 AM, Gc <[email protected]> wrote:

> Hi, I have an issue where the 'after' interceptor is called before the
> 'before'
> interceptor. This is happening when multiple threads hit my tomcat web-app
> following a deployment. After the initial failure it seems to work on
> subsequent
> web requests, until I restart tomcat again. The example below is an extract
> showing how I tested for the issue.
> Any ideas on where I should look next to track down the issue?
>
> Thanks
> Bob
>
>
> String test;
> @Before(stages = LifecycleStage.BindingAndValidation)
> public final void beforeBinding() {
>  test="beforeCalled";
> }
> @After(stages = LifecycleStage.BindingAndValidation)
> public final void afterBinding() {
>  if(test==null) {
>    throw new RuntimeException();
>  }
> }
>
> Env. Windows64 - java32, Tomcat6.0.18, Stripes 1.5.1
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to