Multiple jobs fails with SQLTransactionRollbackException: transaction rollback: serialization failure [BATCH-2374] #1230
I have 2 jobs in a spring batch application. On start up of the application, I am able to see below exception. When I run the batches individually, it runs fine.
org.springframework.dao.ConcurrencyFailureException: PreparedStatementCallback; SQL [INSERT into BATCH_JOB_INSTANCE(JOB_INSTANCE_ID, JOB_NAME, JOB_KEY, VERSION) values (?, ?, ?, ?)]; transaction rollback: serialization failure; nested exception is java.sql.SQLTransactionRollbackException: transaction rollback: serialization failure
The text was updated successfully, but these errors were encountered:
Team, I am also facing the same issue. As described. I also have a job that I want to run at the same time with different contexts. So EOD, it will fulfill a different purpose. It is working fine when I schedule job at different times and also when I run individually.
I have tried the below ways,
I am using the,
Ref of stack trace,