On 20.02.2009, at 22:48, Levi Hoogenberg wrote:
Long shot: are you using Stripes 1.5
Yes, I upgraded to 1.5 few days ago together with adding Spring classes.
and declaring BeforeAfterMethodInterceptor inside web.xml under the
key Interceptor.Classes?
Yes
<init-param>
<param-name>Interceptor.Classes</param-name>
<param-value>
net.sourceforge.stripes.integration.spring.SpringInterceptor,
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor
</param-value>
</init-param>
On Fri, Feb 20, 2009 at 9:23 PM, zkn <[email protected]> wrote:
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
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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