Announcement Announcement Module
Collapse
No announcement yet.
Method interceptor invokes toString Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Method interceptor invokes toString

    I am using a method interceptor and before it invokes my method the Pointcut Advisor invokes the toString method on the method's class. Any ideas why this is happening?

    Thanks in advance.

    <bean id="methodCacheAdvisor" class="org.springframework.aop.support.NameMatchMe thodPointcutAdvisor">
    <property name="advice">
    <ref local="methodCacheInterceptor"/>
    </property>
    <property name="mappedNames">
    <list>
    <value>myMethod</value>
    </list>
    </property>
    </bean>

  • #2
    Are you able to determine the call stack that leads to the invocation of toString()? You can do this by creating an Exception within the toString() and printing out the contents of the stack trace. If you can post this data I'll be able to track down your problem.

    Rob

    Comment

    Working...
    X