The fact that methods annotated with @After are logged as @Before is definitely a bug - could you please open a JIRA issue and assign it to me?
As for methods being called twice, I'll look into that as well. Thanks for reporting this. Cheers, Freddy http://www.stripesbook.com On Fri, 20 Feb 2009 22:23:42 +0200, "zkn" <[email protected]> said: > Hi, > > in my application all methods annotated with @Before ot @After are > being executed twice. The full log is below. The methods are defined > in an abstract base class which SearchActionBean extends. > > Also methods init() and isLogged() are annotated with @After but the > log reads @Before: > > @After(stages=LifecycleStage.HandlerResolution) > public final Resolution isLogged() { > .... > @After(stages=LifecycleStage.ActionBeanResolution) > public final void init() { > > > > 21:28:31,913 DEBUG StripesFilter:194 - Intercepting request to URL: / > mobilek/ > 21:28:31,919 DEBUG StripesFilter:183 - LocalePicker selected locale: bg > 21:28:31,920 DEBUG StripesFilter:183 - LocalePicker selected character > encoding: UTF-8 > 21:28:33,678 DEBUG SpringHelper:183 - Found spring bean with name > [daoCommonService] and type > [com.mobilek.service.impl.hibernate.DaoCommonService] > 21:28:33,679 DEBUG ExecutionContext:183 - Transitioning to lifecycle > stage ActionBeanResolution > 21:28:33,682 DEBUG BeforeAfterMethodInterceptor:183 - Calling @Before > method 'init' at LifecycleStage 'ActionBeanResolution' on ActionBean > 'SearchActionBean' > com.mobilek.web.action.SearchActionBean#init() > com.mobilek.web.ActionBeanContextExt#getAnonymousUser() > 21:28:33,684 DEBUG SpringInterceptor:183 - Running Spring dependency > injection for instance of SearchActionBean > 21:28:33,687 WARN SpringHelper:161 - Found unique SpringBean with > type [com.mobilek.service.IDaoCommonService]. Matching on type is a > little risky so watch out! > 21:28:33,687 DEBUG SpringHelper:183 - Found spring bean with name > [daoService] and type [com.mobilek.service.impl.hibernate.DaoService] > 21:28:33,690 DEBUG BeforeAfterMethodInterceptor:183 - Calling @Before > method 'init' at LifecycleStage 'ActionBeanResolution' on ActionBean > 'SearchActionBean' > com.mobilek.web.action.SearchActionBean#init() > 21:28:33,691 DEBUG ExecutionContext:183 - Transitioning to lifecycle > stage HandlerResolution > 21:28:33,691 DEBUG BeforeAfterMethodInterceptor:183 - Calling @Before > method 'isLogged' at LifecycleStage 'HandlerResolution' on ActionBean > 'SearchActionBean' > 21:28:33,691 DEBUG BeforeAfterMethodInterceptor:183 - Calling @Before > method 'isLogged' at LifecycleStage 'HandlerResolution' on ActionBean > 'SearchActionBean' > 21:28:33,694 DEBUG ExecutionContext:183 - Transitioning to lifecycle > stage BindingAndValidation > 21:28:33,694 DEBUG BeforeAfterMethodInterceptor:183 - Calling @Before > method 'initCar' at LifecycleStage 'BindingAndValidation' on > ActionBean 'SearchActionBean' > com.mobilek.web.action.SearchActionBean#initCar() > 21:28:33,694 DEBUG BeforeAfterMethodInterceptor:183 - Calling @Before > method 'initCar' at LifecycleStage 'BindingAndValidation' on > ActionBean 'SearchActionBean' > com.mobilek.web.action.SearchActionBean#initCar() > 21:28:33,702 DEBUG DefaultValidationMetadataProvider:183 - Loaded > validations for ActionBean SearchActionBean: <none> > 21:28:33,703 DEBUG ExecutionContext:183 - Transitioning to lifecycle > stage EventHandling > com.mobilek.web.action.SearchActionBean#index() ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
