Announcement Announcement Module
Collapse
No announcement yet.
PerformanceMonitorInterceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • PerformanceMonitorInterceptor

    I would like to monitor the performance of a class, ClaimFormController, that extends the SimpleFormController via the PerformanceMonitorInterceptor. I am running Spring 1.1.5 under JBoss 4.0.2. When ever I perform an action that calls the ClaimFormController (SimpleFormController), the view gets rendered correctly, but nothing is being logged. I have ensured that the threshold level in the log4j.xml file is set to "DEBUG", but I still get nothing in the log.

    The configuration looks as follows:
    Code:
        <bean id="claimFormController" class="com.linmar.processpointe.webapp.action.ClaimFormController">
            <property name="commandName"><value>claim</value></property>
            <property name="commandClass"><value>com.linmar.processpointe.adp.claims.model.Claim</value></property>
    		<property name="validator"><ref bean="claimValidator"/></property>
            <property name="formView"><value>claimForm</value></property>
            <property name="successView"><value>processClaimForm.html</value></property>
            <property name="userManager"><ref bean="userManager"/></property>
            <property name="claimManager"><ref bean="claimManager"/></property>
            <property name="commentManager"><ref bean="commentManager"/></property>
            <property name="worklistManager"><ref bean="worklistManager"/></property>
            <property name="submitNextBatchSize"><value>10</value></property>
        </bean>
    
        <bean id="performanceMontitor"
            class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor">
        </bean>
        
        <bean id="monitorClaimForm"
          class="org.springframework.aop.framework.ProxyFactoryBean">
          <property name="target">
             <ref bean="claimFormController"/>
          </property>
          <property name="proxyTargetClass">
             <value>true</value>
          </property>
          <property name="interceptorNames">
             <list>
                <value>performanceMontitor</value>
             </list>
          </property>
       </bean>
    When I start the application up, I see the following the in server.log file:
    Code:
    2005-08-23 11&#58;34&#58;13,533 INFO  &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Creating shared instance of singleton bean 'performanceMontitor'
    2005-08-23 11&#58;34&#58;13,533 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Creating instance of bean 'performanceMontitor' with merged definition &#91;Root bean with class &#91;org.springframework.aop.interceptor.PerformanceMonitorInterceptor&#93; defined in resource &#91;/WEB-INF/action-servlet.xml&#93; of ServletContext&#93;
    2005-08-23 11&#58;34&#58;13,533 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Getting BeanInfo for class &#91;org.springframework.aop.interceptor.PerformanceMonitorInterceptor&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Caching PropertyDescriptors for class &#91;org.springframework.aop.interceptor.PerformanceMonitorInterceptor&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'class' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Class &#91;org.springframework.aop.interceptor.PerformanceMonitorInterceptor&#93; is cache-safe
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Invoking BeanPostProcessors before initialization of bean 'performanceMontitor'
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Invoking BeanPostProcessors after initialization of bean 'performanceMontitor'
    2005-08-23 11&#58;34&#58;13,543 INFO  &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Creating shared instance of singleton bean 'monitorClaimForm'
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Creating instance of bean 'monitorClaimForm' with merged definition &#91;Root bean with class &#91;org.springframework.aop.framework.ProxyFactoryBean&#93; defined in resource &#91;/WEB-INF/action-servlet.xml&#93; of ServletContext&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.core.CollectionFactory&#93; Creating java.util.IdentityHashMap
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Getting BeanInfo for class &#91;org.springframework.aop.framework.ProxyFactoryBean&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Caching PropertyDescriptors for class &#91;org.springframework.aop.framework.ProxyFactoryBean&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'advisorAdapterRegistry' of type &#91;interface org.springframework.aop.framework.adapter.AdvisorAdapterRegistry&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'advisorChainFactory' of type &#91;interface org.springframework.aop.framework.AdvisorChainFactory&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'advisors' of type &#91;class &#91;Lorg.springframework.aop.Advisor;&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'aopProxyFactory' of type &#91;interface org.springframework.aop.framework.AopProxyFactory&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'beanFactory' of type &#91;interface org.springframework.beans.factory.BeanFactory&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'class' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'exposeProxy' of type &#91;boolean&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'frozen' of type &#91;boolean&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'interceptorNames' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'interfaces' of type &#91;class &#91;Ljava.lang.Class;&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'object' of type &#91;class java.lang.Object&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'objectType' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'opaque' of type &#91;boolean&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'optimize' of type &#91;boolean&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'proxiedInterfaces' of type &#91;class &#91;Ljava.lang.Class;&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'proxyInterfaces' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'proxyTargetClass' of type &#91;boolean&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'singleton' of type &#91;boolean&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'target' of type &#91;class java.lang.Object&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Found property 'targetSource' of type &#91;interface org.springframework.aop.TargetSource&#93;; editor=&#91;null&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.CachedIntrospectionResults&#93; Class &#91;org.springframework.aop.framework.ProxyFactoryBean&#93; is cache-safe
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Resolving reference from property 'target' in bean 'monitorClaimForm' to bean 'claimFormController'
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Returning cached instance of singleton bean 'claimFormController'
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.BeanWrapperImpl&#93; About to invoke write method &#91;public void org.springframework.aop.framework.AdvisedSupport.setTarget&#40;java.lang.Object&#41;&#93; on object of class &#91;org.springframework.aop.framework.ProxyFactoryBean&#93;
    2005-08-23 11&#58;34&#58;13,543 DEBUG &#91;org.springframework.beans.BeanWrapperImpl&#93; Invoked write method &#91;public void org.springframework.aop.framework.AdvisedSupport.setTarget&#40;java.lang.Object&#41;&#93; with value of type &#91;java.lang.Object&#93;
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.beans.BeanWrapperImpl&#93; Converting String to &#91;boolean&#93; using property editor &#91;sun.beans.editors.BoolEditor@19b0124&#93;
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.beans.BeanWrapperImpl&#93; About to invoke write method &#91;public void org.springframework.aop.framework.ProxyConfig.setProxyTargetClass&#40;boolean&#41;&#93; on object of class &#91;org.springframework.aop.framework.ProxyFactoryBean&#93;
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.beans.BeanWrapperImpl&#93; Invoked write method &#91;public void org.springframework.aop.framework.ProxyConfig.setProxyTargetClass&#40;boolean&#41;&#93; with value &#91;true&#93;
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.beans.BeanWrapperImpl&#93; About to invoke write method &#91;public void org.springframework.aop.framework.ProxyFactoryBean.setInterceptorNames&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.aop.framework.ProxyFactoryBean&#93;
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.beans.BeanWrapperImpl&#93; Invoked write method &#91;public void org.springframework.aop.framework.ProxyFactoryBean.setInterceptorNames&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@167f4bf&#93;
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Invoking setBeanFactory on BeanFactoryAware bean 'monitorClaimForm'
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.aop.framework.ProxyFactoryBean&#93; Configuring advisor or advice 'performanceMontitor'
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Returning cached instance of singleton bean 'performanceMontitor'
    2005-08-23 11&#58;34&#58;13,553 DEBUG &#91;org.springframework.aop.framework.ProxyFactoryBean&#93; Adding advisor or TargetSource &#91;org.springframework.aop.interceptor.PerformanceMonitorInterceptor@1f53293&#93; with name &#91;performanceMontitor&#93;
    2005-08-23 11&#58;34&#58;13,613 DEBUG &#91;org.springframework.aop.framework.ProxyFactoryBean&#93; Adding advisor with name &#91;performanceMontitor&#93;
    2005-08-23 11&#58;34&#58;13,613 DEBUG &#91;org.springframework.aop.framework.ProxyFactoryBean&#93; Not refreshing target&#58; bean name not specified in interceptorNames
    2005-08-23 11&#58;34&#58;13,633 DEBUG &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Creating CGLIB proxy for &#91;class com.linmar.processpointe.webapp.action.ClaimFormController&#93;
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public org.springframework.web.servlet.ModelAndView com.linmar.processpointe.webapp.action.ClaimFormController.onSubmit&#40;javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.Object,org.springframework.validation.BindException&#41; throws java.lang.Exception - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public org.springframework.web.servlet.ModelAndView com.linmar.processpointe.webapp.action.ClaimFormController.processFormSubmission&#40;javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.Object,org.springframework.validation.BindException&#41; throws java.lang.Exception - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public com.linmar.processpointe.adp.claims.service.WorklistManager com.linmar.processpointe.webapp.action.ClaimFormController.getWorklistManager&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public void com.linmar.processpointe.webapp.action.ClaimFormController.setWorklistManager&#40;com.linmar.processpointe.adp.claims.service.WorklistManager&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public com.linmar.processpointe.adp.claims.service.ClaimManager com.linmar.processpointe.webapp.action.ClaimFormController.getClaimManager&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public void com.linmar.processpointe.webapp.action.ClaimFormController.setClaimManager&#40;com.linmar.processpointe.adp.claims.service.ClaimManager&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public com.linmar.processpointe.adp.claims.service.CommentManager com.linmar.processpointe.webapp.action.ClaimFormController.getCommentManager&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public void com.linmar.processpointe.webapp.action.ClaimFormController.setCommentManager&#40;com.linmar.processpointe.adp.claims.service.CommentManager&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public int com.linmar.processpointe.webapp.action.ClaimFormController.getSubmitNextBatchSize&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public void com.linmar.processpointe.webapp.action.ClaimFormController.setSubmitNextBatchSize&#40;int&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,713 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public java.util.HashMap com.linmar.processpointe.webapp.action.BaseFormController.getConfiguration&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,723 DEBUG &#91;org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory&#93; Using properties&#58; &#123;user=processpointe, password=--hidden--&#125;
    2005-08-23 11&#58;34&#58;13,733 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public com.linmar.processpointe.service.UserManager com.linmar.processpointe.webapp.action.BaseFormController.getUserManager&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,733 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public void com.linmar.processpointe.webapp.action.BaseFormController.setUserManager&#40;com.linmar.processpointe.service.UserManager&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,733 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public void com.linmar.processpointe.webapp.action.BaseFormController.saveMessage&#40;javax.servlet.http.HttpServletRequest,java.lang.Object&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,733 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public native int java.lang.Object.hashCode&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,743 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Found equals&#40;&#41; method - using INVOKE_EQUALS
    2005-08-23 11&#58;34&#58;13,743 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Unable to apply any optimisations to advised method public java.lang.String java.lang.Object.toString&#40;&#41; - using AOP_PROXY
    2005-08-23 11&#58;34&#58;13,743 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract int org.springframework.aop.framework.Advised.indexOf&#40;org.springframework.aop.Advisor&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,743 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract org.springframework.aop.Advisor&#91;&#93; org.springframework.aop.framework.Advised.getAdvisors&#40;&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,743 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addAdvisor&#40;int,org.springframework.aop.Advisor&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,763 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addAdvisor&#40;org.springframework.aop.Advisor&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,763 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract boolean org.springframework.aop.framework.Advised.isFrozen&#40;&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,763 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addInterceptor&#40;org.aopalliance.intercept.Interceptor&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,783 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addInterceptor&#40;int,org.aopalliance.intercept.Interceptor&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,783 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.setTargetSource&#40;org.springframework.aop.TargetSource&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,783 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract boolean org.springframework.aop.framework.Advised.getProxyTargetClass&#40;&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,783 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract boolean org.springframework.aop.framework.Advised.getExposeProxy&#40;&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,793 DEBUG &#91;org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory&#93; Using properties&#58; &#123;user=processpointe, password=--hidden--&#125;
    2005-08-23 11&#58;34&#58;13,793 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract org.springframework.aop.TargetSource org.springframework.aop.framework.Advised.getTargetSource&#40;&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,793 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract java.lang.Class&#91;&#93; org.springframework.aop.framework.Advised.getProxiedInterfaces&#40;&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,793 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addAdvice&#40;int,org.aopalliance.aop.Advice&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,813 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addAdvice&#40;org.aopalliance.aop.Advice&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,813 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract boolean org.springframework.aop.framework.Advised.isInterfaceProxied&#40;java.lang.Class&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,813 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract boolean org.springframework.aop.framework.Advised.removeAdvice&#40;org.aopalliance.aop.Advice&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,813 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addAfterReturningAdvice&#40;org.springframework.aop.AfterReturningAdvice&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,833 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addBeforeAdvice&#40;org.springframework.aop.MethodBeforeAdvice&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,843 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.addThrowsAdvice&#40;org.springframework.aop.ThrowsAdvice&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,863 DEBUG &#91;org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory&#93; Using properties&#58; &#123;user=processpointe, password=--hidden--&#125;
    2005-08-23 11&#58;34&#58;13,883 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract void org.springframework.aop.framework.Advised.removeAdvisor&#40;int&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,883 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract boolean org.springframework.aop.framework.Advised.removeAdvisor&#40;org.springframework.aop.Advisor&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,883 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract boolean org.springframework.aop.framework.Advised.replaceAdvisor&#40;org.springframework.aop.Advisor,org.springframework.aop.Advisor&#41; throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;13,883 INFO  &#91;org.springframework.aop.framework.Cglib2AopProxy&#93; Method public abstract java.lang.String org.springframework.aop.framework.Advised.toProxyConfigString&#40;&#41; is declared on Advised - using DISPATCH_ADVISED
    2005-08-23 11&#58;34&#58;14,024 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Invoking BeanPostProcessors before initialization of bean 'monitorClaimForm'
    2005-08-23 11&#58;34&#58;14,024 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Invoking BeanPostProcessors after initialization of bean 'monitorClaimForm'
    2005-08-23 11&#58;34&#58;14,024 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Calling code asked for FactoryBean instance for name 'monitorClaimForm'
    2005-08-23 11&#58;34&#58;14,024 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Returning cached instance of singleton bean 'monitorClaimForm'
    2005-08-23 11&#58;34&#58;14,024 DEBUG &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; Bean with name 'monitorClaimForm' is a factory bean
    Any thoughts or ideas on what I am doing wrong are greatly appreciated; clearly I am missing something obvious.

    Regards,
    Todd

  • #2
    What does your url mapping look like? Are you mapping the URL to monitorClaimForm?

    Comment


    • #3
      You have lots of "unable to apply AOP" errors in your stack trace.

      It appears to be using cglib, you probably need to tell it to use jdk1.4 proxys.

      Try setting the interfaces property on PFB to org.springframework.web.servlet.mvc.

      Just guessing

      Comment


      • #4
        Thanks for the input, I forgot to change the URL mapping to point to the monitorClaimForm. However, by doing this I get the following error:

        Code:
        2005-08-24 14&#58;14&#58;22,637 DEBUG &#91;org.springframework.aop.interceptor.PerformanceMonitorInterceptor&#93; StopWatch 'nullcom.linmar.processpointe.webapp.action.ClaimFormController.getClaimManagernull'&#58; running time &#40;millis&#41; = 0
        
        2005-08-24 14&#58;14&#58;23,048 ERROR &#91;org.springframework.web.servlet.DispatcherServlet&#93; Could not complete request
        javax.servlet.ServletException&#58; ModelAndView &#91;ModelAndView&#58; materialized View is &#91;null&#93;; model is &#123;command=Claim Record&#58;
        
        	Claim ID&#58; null
        	Claim TrackingID&#58; 6018
        	Employee ID&#58; 999999999
        	Form Type&#58; CB
        	Total Lines&#58; 4
        		Line ID&#58; 6024
        			ClaimLine Amount&#58; 50.0
        			ClaimLine Eligibility Code&#58; 9
        			ClaimLine Catgegory ID&#58; 8
        			ClaimLine Date&#58; 02/01/2005
        				Plans FOUND for ClaimLine&#58;
        					Plan Name&#58; PARKING REIMBURSEMENT ACCOUNT
        		Line ID&#58; 6030
        			ClaimLine Amount&#58; 100.0
        			ClaimLine Eligibility Code&#58; -1
        			ClaimLine Catgegory ID&#58; 6
        			ClaimLine Date&#58; 02/01/2005
        				Plans FOUND for ClaimLine&#58;
        					Plan Name&#58; TRANSIT AND VANPOOLING REIMBURSEMENT ACCOUNT
        		Line ID&#58; 6037
        			ClaimLine Amount&#58; 50.0
        			ClaimLine Eligibility Code&#58; 9
        			ClaimLine Catgegory ID&#58; 8
        			ClaimLine Date&#58; 01/01/2005
        				Plans FOUND for ClaimLine&#58;
        					Plan Name&#58; PARKING REIMBURSEMENT ACCOUNT
        		Line ID&#58; 6043
        			ClaimLine Amount&#58; 100.0
        			ClaimLine Eligibility Code&#58; -1
        			ClaimLine Catgegory ID&#58; 6
        			ClaimLine Date&#58; 01/01/2005
        				Plans FOUND for ClaimLine&#58;
        					Plan Name&#58; TRANSIT AND VANPOOLING REIMBURSEMENT ACCOUNT
        , org.springframework.validation.BindException.command=org.springframework.validation.BindException&#58; BindException&#58; 0 errors&#125;&#93; neither contains a view name nor a View object in servlet with name 'action'
        	at org.springframework.web.servlet.DispatcherServlet.render&#40;DispatcherServlet.java&#58;919&#41;
        	at org.springframework.web.servlet.DispatcherServlet.doDispatch&#40;DispatcherServlet.java&#58;705&#41;
        	at org.springframework.web.servlet.DispatcherServlet.doService&#40;DispatcherServlet.java&#58;625&#41;
        	at org.springframework.web.servlet.FrameworkServlet.serviceWrapper&#40;FrameworkServlet.java&#58;386&#41;
        	at org.springframework.web.servlet.FrameworkServlet.doGet&#40;FrameworkServlet.java&#58;346&#41;
        	at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java&#58;697&#41;
        	at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java&#58;810&#41;
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter&#40;ApplicationFilterChain.java&#58;252&#41;
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter&#40;ApplicationFilterChain.java&#58;173&#41;
        	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal&#40;CharacterEncodingFilter.java&#58;75&#41;
        	at org.springframework.web.filter.OncePerRequestFilter.doFilter&#40;OncePerRequestFilter.java&#58;76&#41;
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter&#40;ApplicationFilterChain.java&#58;202&#41;
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter&#40;ApplicationFilterChain.java&#58;173&#41;
        	at com.opensymphony.clickstream.ClickstreamFilter.doFilter&#40;ClickstreamFilter.java&#58;42&#41;
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter&#40;ApplicationFilterChain.java&#58;202&#41;
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter&#40;ApplicationFilterChain.java&#58;173&#41;
        I tried changing the configuration to reference the org.springframework.web.servlet.mvc.Controller interface rather then using CGLIB so that jdk1.4 proxys were used. While this works, it only shows the information for the "handleRequest" method, since this is all that is defined in the interface.

        Code:
            <bean id="monitorClaimFormController"
              class="org.springframework.aop.framework.ProxyFactoryBean">
              <property name="proxyInterfaces">
                  <value>org.springframework.web.servlet.mvc.Controller</value>
              </property>
              <property name="target">
                 <ref local="claimFormController"/>
              </property>
              <!-- property name="proxyTargetClass">
                 <value>true</value>
              </property -->
              <property name="interceptorNames">
                 <list>
                    <value>performanceMonitorInterceptor</value>
                 </list>
              </property>
           </bean>
        I also tried upgrading to the latest release of Spring, 1.2.3, but this did not seem to resolve any of the above problems. I thought perhaps the following issue, http://opensource2.atlassian.com/pro...rowse/SPR-1211, which is fixed in 1.2.3, would resolve the issue but no such luck.

        So how do I define an Aspect that performs as a MethodMonitor for a SimpleFormController so that all methods are timed, not just the handleRequest method? Is there away to define "advice" on a formController or do I have to go through a Proxy?

        TIA.

        Regards,
        Todd

        Comment

        Working...
        X