Results 1 to 5 of 5

Thread: AbstractTransactionalDataSourceSpringContextTests ignores breakpoints

  1. #1

    Default AbstractTransactionalDataSourceSpringContextTests ignores breakpoints

    I have a junit test to test a dao method that extends AbstractTransactionalDataSourceSpringContextTests which just ignores break points when I try to debug it in eclipse.

    I have changed the test to just extend TestCase and debugging works fine.

    I suspect it has something to do with proxying but I don't know for sure.

    I can tell that the code is being executed because I get an exception (the one I am trying to debug ) with a stack trace showing this.

    Could anyone suggest a reason for this please it is driving me mad!

    Cheers

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Problems like that are usually classpath related, e.g. you are debugging code that isn't the one referenced by the classpath. I've also sometimes had problems when the correct version of the 3rd party source wasn't referenced.

  3. #3

    Default Still not happening!

    I have made sure I have the Spring 2.0.3 source code linked in with the 2.0.3 spring.jar and spring-mock.jar in the build path.

    If I put a breakpoint in the
    Code:
    protected String[] getConfigLocations()
    it suspends the thread at that point, if I then step through the code my test method does not appear on the stack (as far as I can tell). I am mightily confused.

    This is happening with all my integration tests which is a real pain.

  4. #4

    Default Interesting development

    I was using the BEA Jrockit JDK (1.5.0_06) to run these tests, however when I switched to the Sun JDK (1.5.0_06) it works.

  5. #5
    Join Date
    Jun 2005
    Posts
    1

    Default Eclipse breakpoint ignored with AbstractTransactionalDataSourceSpringContextTests

    I am having similar issues trying to set breakpoints with a AbstractTransactionalDataSourceSpringContextTests test. My breakpoints just get ignored in Eclipse.

    I must be missing something real simple.

    Was there a resolution to this issue?

    Many thanks.

    Azad

Posting Permissions

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