Im using SpringBatch 2.1.7 release core and Infrastructure jars to read a CSV file and save it to DB.
Integrated my code with Spring quartz scheduler to run for every minute, The Batch is working fine with reading and writing but its failing with the error "org.springframework.dao.OptimisticLockingFailureE xception: Attempt to update step execution id=1 with wrong version (2), where current version is 1"
due to Tx conflicts. Please suggest how can i resolve this issue.
Integrated my code with Spring quartz scheduler to run for every minute, The Batch is working fine with reading and writing but its failing with the error "org.springframework.dao.OptimisticLockingFailureE xception: Attempt to update step execution id=1 with wrong version (2), where current version is 1"
due to Tx conflicts. Please suggest how can i resolve this issue.