Announcement Announcement Module
Collapse
No announcement yet.
Method getUserProfile(java.lang.String) cannot be found on $Proxy471 type Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Hello
    is the point cut defined with the interface signature or the implementation, the better is to define with the implementation signature.

    Comment

    Working...
    X