Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Praveen Kumar Battu, 2 years ago
via Spring JIRA by Praveen Kumar Battu, 1 year ago
via spring.io by Unknown author, 2 years ago
via Stack Overflow by chandra
, 2 years ago
org.springframework.dao.OptimisticLockingFailureException: Attempt to update step execution id=1 with wrong version (1), where current version is 0	at org.springframework.batch.core.repository.dao.MapStepExecutionDao.updateStepExecution(MapStepExecutionDao.java:86)	at org.springframework.batch.core.repository.support.SimpleJobRepository.update(SimpleJobRepository.java:167)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy2.update(Unknown Source)	at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:300)	at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:67)	at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:352)	at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:212)	at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:143)	at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:239)	at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:197)	at org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:348)	at org.springframework.batch.core.job.flow.FlowJob.access$100(FlowJob.java:43)	at org.springframework.batch.core.job.flow.FlowJob$JobFlowExecutor.executeStep(FlowJob.java:137)	at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60)	at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144)	at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124)	at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:82)	at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:80)	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)	at java.util.concurrent.FutureTask.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)