Spring Projects Issues

Results 1569 comments of Spring Projects Issues

**[zyro](https://jira.spring.io/secure/ViewProfile.jspa?name=zyro)** commented i think i am currently facing this (or at least sth. similar) in the following scenario: * business logic throws an OptimisticLockingFailureException during commit marking the current transaction...

**[member sound](https://jira.spring.io/secure/ViewProfile.jspa?name=membersound)** commented Is this issue still active? I'm also getting the OptimisticLockFailureException. The cause for me was an insert on a column whose length was not big enough for...

**[Mohamed](https://jira.spring.io/secure/ViewProfile.jspa?name=medhedi_abd)** commented Hi, I have the same problem, and I don't know how to resolve it. I debuged my code but no way to find the cause. ``` 12:21:42,400 DEBUG...

**[Adam](https://jira.spring.io/secure/ViewProfile.jspa?name=spyro)** commented Same thing as for `@Mohamed`. No way to find out what is the root cause of the rollback attempt: ``` 12:28:49.420 [SimpleAsyncTaskExecutor-10] INFO p.d.i.i.c.IncrementalImportJobFactory - Starting the incremental...

**[Gérald Quintana](https://jira.spring.io/secure/ViewProfile.jspa?name=gquintana)** commented `@Spyro` @ medhedi_abd The problem occurs, not when the chunk read-process-write fails, but when the commit fails. In the past I've seen 2 reasons for that: *...

**[Mohamed](https://jira.spring.io/secure/ViewProfile.jspa?name=medhedi_abd)** commented Hi, `@Gerald`, I agree with you, Indead, this error occurs also when using Jboss4 EAP. and the treatment of batch works well without any error when using "WebSphere...

**[Gérald Quintana](https://jira.spring.io/secure/ViewProfile.jspa?name=gquintana)** commented `@medhedi_Abd` In your case it may because of a third reason: "using JTA". If the XA transactions fails to commit a resource for any resource (timeout or...

**[David J. M. Karlsen](https://jira.spring.io/secure/[email protected])** commented Any movement on this issue?

**[Sarvesh Katariya](https://jira.spring.io/secure/ViewProfile.jspa?name=sarveshkatariya)** commented Any updates/workaround on this issue ?

**[Marcus Mattern](https://jira.spring.io/secure/ViewProfile.jspa?name=matternikus)** commented We did a simple workaround for us to avoid this problem. I only patched the afterCompletion method of inner class org.springframework.batch.core.step.tasklet.TaskletStep.ChunkTransactionCallback. {{ `@Override` public void afterCompletion(int status)...