Using Spring 3.1.0.M1...
Testing locally in Eclipse the following AOP setup works fine WITHOUT the arg-names parameter in the after-returning advice. But when I run the same configuration (i.e. configuration files and build path) within Weblogic (10.3) I get:
AmbiguousBindingException: Binding of returning parameter 'element' is ambiguous, there are 2 candidates.
Any suggestions as to how to debug? Or has anybody run into this problem?Code:<aop:config> <aop:aspect ref="elementIntegration"> <aop:pointcut id="readElementPointcut" expression="execution(com.klistret.cmdb.ci.pojo.Element com.klistret.cmdb.service.ElementService.get(Long)) and args(id)" /> .... <aop:after-returning pointcut-ref="readElementPointcut" method="read" arg-names="id,element" returning="element" /> .... </aop:aspect> </aop:config>


Reply With Quote
