Results 1 to 2 of 2

Thread: Method getUserProfile(java.lang.String) cannot be found on $Proxy471 type

  1. #1
    Join Date
    Apr 2011
    Posts
    20

    Question Method getUserProfile(java.lang.String) cannot be found on $Proxy471 type

    Hi,

    I'm having a problem while trying to integrate WebFlow with AOP for logging.

    I have a class called LicenseManager.java that implements the following method:

    Code:
    	public XYZProfile getUserProfile(String userid) {
    		//implementation
    	}
    It work perfectly fine on WebFlow alone, but as soon as I config an advice, it complaints that the method cannot be found in the proxy.

    Code:
            <aop:aspectj-autoproxy />
    
            <bean id="customizableTraceInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor">
                <property name="enterMessage" value="Entering $[methodName]: ($[arguments])"/>
                <property name="exitMessage" value="Leaving $[methodName]: $[returnValue]"/>
            </bean>
    
            <aop:config>
                <aop:advisor advice-ref="customizableTraceInterceptor" pointcut="execution(public * com.<our.stuff>.manager..*(..))"/>
            </aop:config>

    We are using:

    org.springframework.webflow-2.3.0.RELEASE
    org.springframework.core-3.0.5.RELEASE

    I've been unable to identify the problem so far.

    Am I doing this right? Or is there a better way?

    thanks,

  2. #2
    Join Date
    May 2011
    Location
    Paris, France
    Posts
    18

    Default

    Hello
    is the point cut defined with the interface signature or the implementation, the better is to define with the implementation signature.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •