Announcement Announcement Module
Collapse
No announcement yet.
cglib weirdness... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • cglib weirdness...

    I've set some breakpoints in my advice which I can never seem to hit...but if i set proxyTargetClass=true, I get a message in eclipse saying that it can't hit said breakpoint because of missing line information in the class - the class name it references is one of those cglib$xyz proxy names...

    So, this seems to indicate that the breakpoint is trying to be hit, but the functionality in the advice is never executed.

    Tried running different jvms - jrockit, sun, no improvements.


    <bean id="advice" class="MyAdvice"/>
    <bean id="advisor" class="org.springframework.aop.support.RegexpMetho dPointcutAdvisor">
    <property name="advice">
    <ref local="advice"/>
    </property>
    <property name="pattern"><value>.*</value></property>
    </bean>
    <bean class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
    <property name="proxyTargetClass">
    <value>true</value>
    </property>
    <property name="beanNames"><list><value>*</value></list></property>
    <property name="interceptorNames">
    <list>
    <value>advisor</value>
    </list>
    </property>
    </bean>
Working...
X