Skip to content

Spring ignores @Transaction due to double proxying [SPR-7009] #11674

@spring-projects-issues

Description

@spring-projects-issues

Jürgen Strickstrock opened SPR-7009* and commented

When using

  • PersistenceExceptionTranslatorPostProcessor
  • BeanNameAutoProxy for transaction proxy creation
  • AnnotationTransactionAttributeSource
    spring creates doubled JDK proxies (proxy encapsulated in proxy), which results in TransactionInterceptor being unable to read @Transactional annotation as target is proxy in line 92.

This is probably due to a bug in AbstractAutoProxyCreator.wrapIfNecessary.


Affects: 3.0.1

Attachments:

Referenced from: commits c13e5f9, 706a09c

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions