Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: UnexpectedRollbackException when running JUnit

  1. #11
    Join Date
    Jun 2007
    Location
    Minsk, Belarus
    Posts
    217

    Default

    Try to debug TransactionInterceptor.invoke, or configure log4j trace level for it:

    log4j.properties
    Code:
    log4j.logger.org.springframework.transaction = debug, console
    log4j.logger.org.springframework.transaction.interceptor = trace, console
    
    log4j.additivity.org.springframework.transaction = false
    log4j.additivity.org.springframework.transaction.interceptor = false

  2. #12

    Default

    I've increased the log level as per your instructions.

    I've attached the output.

    I've spent hours on this, and I can't seem to pinpoint the cause.

    I hope that you can see something odd occurring, because I really can't.

    Any advice is welcome.

    Thanks,
    EDH
    PS. My service classes are made of an interface, e.g. GebruikerService, and a corresponding implementation, e.g. GebruikerServiceImpl, that implements the interface.
    Attached Files Attached Files

  3. #13

    Default

    I found it.
    There was something wrong in my declarative txn demarcation rules.
    grrrr

Tags for this Thread

Posting Permissions

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