|
|
Autoproxy problems with aspects
Hello,
I am using an aspect-autoproxy for my beans. When I remove this autoproxy entry everything works fine. With this entry I get exceptions. Has anyone solved such a error already?
lt;aop:aspectj-autoproxy /gt;
org..beans.factory.BeanCreationExce ption: Error creating bean with name 'ParamService' defined in class path resource [gc_Server_Common_business-logic.xml]: Cannot resolve reference to bean 'ParamDAO' while setting bean property 'paramDAO'; nested exception is org..beans.factory.BeanCreationExce ption: Error creating bean with name 'ParamDAO' defined in class path resource [gc_Server_Common_business-logic.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
Caused by: org..beans.factory.BeanCreationExce ption: Error creating bean with name 'ParamDAO' defined in class path resource [gc_Server_Common_business-logic.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
Caused by: PropertyAccessExceptionsException (1 errors)
org..beans.TypeMismatchException: Failed to convert property value of type [$Proxy9] to required type [org..jdbc.core.JdbcTemplate] for property 'jdbcTemplate'; nested exception is java.lang.IllegalArgumentException: No matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: No matching editors or conversion strategy found
at org..beans.PropertyTypeConverter.co nvertIfNecessary(PropertyTypeConverter.java:209)
Thanks,
nort
lt;aop:aspectj-autoproxy proxy-target-class=quot;truequot;/gt;
is the solution... |
|