Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountering "Transaction synchronization is not active" error when a timer job is executed #4512

Open
vicehope opened this issue Dec 15, 2023 · 1 comment

Comments

@vicehope
Copy link

Activiti version: 8.0.0
Spring Boot: 3

java.lang.IllegalStateException: Transaction synchronization is not active
	at org.springframework.transaction.support.TransactionSynchronizationManager.registerSynchronization(TransactionSynchronizationManager.java:277)
	at org.activiti.spring.SpringTransactionContext.addTransactionListener(SpringTransactionContext.java:79)
	at org.activiti.engine.impl.asyncexecutor.DefaultJobManager.hintAsyncExecutor(DefaultJobManager.java:428)
	at org.activiti.engine.impl.asyncexecutor.DefaultJobManager.triggerExecutorIfNeeded(DefaultJobManager.java:103)
	at org.activiti.engine.impl.asyncexecutor.DefaultJobManager.moveTimerJobToExecutableJob(DefaultJobManager.java:142)
	at org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable$1.execute(AcquireTimerJobsRunnable.java:68)
	at org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable$1.execute(AcquireTimerJobsRunnable.java:63)
	at org.activiti.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:41)

Could anyone advise me on the correct configuration in Spring Boot?

@isuri1
Copy link

isuri1 commented May 30, 2024

@vicehope were you able to resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants