org.springframework.transaction.IllegalTransactionStateException: Existing transaction found for transaction marked with propagation 'never'

Atlassian JIRA | Michael Heemskerk | 2 years ago
  1. 0

    [BSERV-7073] Embedded Crowd's transaction setting clash with Stash's transaction settings - Atlassian JIRA

    atlassian.com | 11 months ago
    org.springframework.transaction.IllegalTransactionStateException: Existing transaction found for transaction marked with propagation 'never'
  2. 0

    Stash provides an AOP pointcut (see {{crowd-spi-context.xml}}) that configures transactions on the various methods of embedded Crowd's services to ensure that they work correctly. Starting from Crowd 2.7, Crowd now also uses Spring's @Transactional annotations. This means that now two layers of transactions are being applied to Crowd's services and in some cases these transactional settings conflict. One specific example is : {noformat} [INFO] [talledLocalContainer] org.springframework.transaction.IllegalTransactionStateException: Existing transaction found for transaction marked with propagation 'never' [INFO] [talledLocalContainer] at org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:401) ~[spring-tx-4.1.1.RELEASE.jar:4.1.1.RELEASE] [INFO] [talledLocalContainer] at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:349) ~[spring-tx-4.1.1.RELEASE.jar:4.1.1.RELEASE] [INFO] [talledLocalContainer] at com.atlassian.owd.manager.directory.DirectoryManagerGeneric.synchroniseCache(DirectoryManagerGeneric.java:246) ~[crowd-core-2.8.1-m3.jar:na] [INFO] [talledLocalContainer] at com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.synchroniseDirectory(CrowdDirectoryServiceImpl.java:199) ~[embedded-crowd-core-2.8.1-m3.jar:na] [INFO] [talledLocalContainer] at com.atlassian.stash.internal.crowd.CustomizedCrowdDirectoryService.synchroniseDirectory(CustomizedCrowdDirectoryService.java:100) ~[stash-service-impl-3.5.0.jar:na] {noformat}

    Atlassian JIRA | 2 years ago | Michael Heemskerk
    org.springframework.transaction.IllegalTransactionStateException: Existing transaction found for transaction marked with propagation 'never'
  3. 0

    Stash provides an AOP pointcut (see {{crowd-spi-context.xml}}) that configures transactions on the various methods of embedded Crowd's services to ensure that they work correctly. Starting from Crowd 2.7, Crowd now also uses Spring's @Transactional annotations. This means that now two layers of transactions are being applied to Crowd's services and in some cases these transactional settings conflict. One specific example is : {noformat} [INFO] [talledLocalContainer] org.springframework.transaction.IllegalTransactionStateException: Existing transaction found for transaction marked with propagation 'never' [INFO] [talledLocalContainer] at org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:401) ~[spring-tx-4.1.1.RELEASE.jar:4.1.1.RELEASE] [INFO] [talledLocalContainer] at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:349) ~[spring-tx-4.1.1.RELEASE.jar:4.1.1.RELEASE] [INFO] [talledLocalContainer] at com.atlassian.owd.manager.directory.DirectoryManagerGeneric.synchroniseCache(DirectoryManagerGeneric.java:246) ~[crowd-core-2.8.1-m3.jar:na] [INFO] [talledLocalContainer] at com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.synchroniseDirectory(CrowdDirectoryServiceImpl.java:199) ~[embedded-crowd-core-2.8.1-m3.jar:na] [INFO] [talledLocalContainer] at com.atlassian.stash.internal.crowd.CustomizedCrowdDirectoryService.synchroniseDirectory(CustomizedCrowdDirectoryService.java:100) ~[stash-service-impl-3.5.0.jar:na] {noformat}

    Atlassian JIRA | 2 years ago | Michael Heemskerk
    org.springframework.transaction.IllegalTransactionStateException: Existing transaction found for transaction marked with propagation 'never'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [SPR-2504] Problems with @Transactional attribute processing if mix of Spring-managed beans and load-time weaved object exists - Spring JIRA

    spring.io | 11 months ago
    org.springframework.transaction.IllegalTransactionStateException: Transaction propagation 'mandatory' but no existing transaction found
  6. 0

    [SPR-2521] @Transactional on interface and AspectJ LTW - strange behavior - Spring JIRA

    spring.io | 11 months ago
    org.springframework.transaction.IllegalTransactionStateException: Transaction propagation 'mandatory' but no existing transaction found

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.transaction.IllegalTransactionStateException

      Existing transaction found for transaction marked with propagation 'never'

      at org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction()
    2. Spring Tx
      AbstractPlatformTransactionManager.getTransaction
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:401)[spring-tx-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:349)[spring-tx-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      2 frames
    3. com.atlassian.owd
      DirectoryManagerGeneric.synchroniseCache
      1. com.atlassian.owd.manager.directory.DirectoryManagerGeneric.synchroniseCache(DirectoryManagerGeneric.java:246)[crowd-core-2.8.1-m3.jar:na]
      1 frame
    4. com.atlassian.crowd
      CrowdDirectoryServiceImpl.synchroniseDirectory
      1. com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.synchroniseDirectory(CrowdDirectoryServiceImpl.java:199)[embedded-crowd-core-2.8.1-m3.jar:na]
      1 frame
    5. com.atlassian.stash
      CustomizedCrowdDirectoryService.synchroniseDirectory
      1. com.atlassian.stash.internal.crowd.CustomizedCrowdDirectoryService.synchroniseDirectory(CustomizedCrowdDirectoryService.java:100)[stash-service-impl-3.5.0.jar:na]
      1 frame