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

  • 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?

    <aop:aspectj-autoproxy />

    org.springframework.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.springframework.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.springframework.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.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy9] to required type [org.springframework.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.springframework.beans.PropertyTypeConverter.co nvertIfNecessary(PropertyTypeConverter.java:209)
    Thanks,
    nort

  • #2
    <aop:aspectj-autoproxy proxy-target-class="true"/>
    is the solution...

    Comment

    Working...
    X