Results 1 to 2 of 2

Thread: Method interceptor invokes toString

  1. #1
    Join Date
    Jul 2005
    Posts
    2

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    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
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. PerformanceMonitorInterceptor
    By tnist in forum AOP
    Replies: 3
    Last Post: Aug 24th, 2005, 01:39 PM
  5. Replies: 1
    Last Post: Jul 28th, 2005, 05:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •