Joel
08/17/2020, 4:36 PM@Transactional
. The backtrace looks like this:
domain_1 | Caused by: kotlin.KotlinNullPointerException: null
domain_1 | at org.jetbrains.exposed.sql.transactions.TransactionStore.getValue(TransactionScope.kt:21) ~[exposed-core-0.26.1.jar!/:na]
domain_1 | at org.jetbrains.exposed.dao.EntityCacheKt.getEntityCache(EntityCache.kt) ~[exposed-dao-0.26.1.jar!/:na]
domain_1 | at org.jetbrains.exposed.dao.EntityCacheKt.flushCache(EntityCache.kt:152) ~[exposed-dao-0.26.1.jar!/:na]
domain_1 | at org.jetbrains.exposed.dao.EntityLifecycleInterceptor.beforeCommit(EntityLifecycleInterceptor.kt:40) ~[exposed-dao-0.26.1.jar!/:na]
domain_1 | at org.jetbrains.exposed.sql.Transaction.commit(Transaction.kt:63) ~[exposed-core-0.26.1.jar!/:na]
domain_1 | at org.jetbrains.exposed.spring.SpringTransactionManager.doCommit(SpringTransactionManager.kt:67) ~[spring-transaction-0.26.1.jar!/:na]
domain_1 | ... 20 common frames omitted
They are both running in the same thread, so I'm thinking it may be related to this and perhaps it is losing the reference to the outer transaction.