org.springframework.batch.retry.ExhaustedRetryException

Retry exhausted after last attempt in recovery path, but exception is not skippable.; nested exception is org.springframework.batch.item.adapter.DynamicMethodInvocationException: java.lang.reflect.InvocationTargetException

Solutions on the web3

  • via Spring JIRA by David J. M. Karlsen, 1 year ago
    Retry exhausted after last attempt in recovery path, but exception is not skippable.; nested exception is org.springframework.batch.item.adapter.DynamicMethodInvocationException: java.lang.reflect.InvocationTargetException
  • via Spring JIRA by David J. M. Karlsen, 1 year ago
    Retry exhausted after last attempt in recovery path, but exception is not skippable.; nested exception is org.springframework.batch.item.adapter.DynamicMethodInvocationException: java.lang.reflect.InvocationTargetException
  • via spring.io by Unknown author, 1 year ago
    Retry exhausted after last attempt in recovery path, but exception is not skippable.; nested exception is com.bsb.sf.batch.exception.DatabaseReaderTableNotExist: Exception planned to be launch at item 7
  • Stack trace

    • org.springframework.batch.retry.ExhaustedRetryException: Retry exhausted after last attempt in recovery path, but exception is not skippable.; nested exception is org.springframework.batch.item.adapter.DynamicMethodInvocationException: java.lang.reflect.InvocationTargetException at org.springframework.batch.core.step.item.FaultTolerantChunkProcessor$5.recover(FaultTolerantChunkProcessor.java:358)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.retry.support.RetryTemplate.handleRetryExhausted(RetryTemplate.java:405)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.retry.support.RetryTemplate.doExecute(RetryTemplate.java:274)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.retry.support.RetryTemplate.execute(RetryTemplate.java:180)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.item.BatchRetryTemplate.execute(BatchRetryTemplate.java:213)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.item.FaultTolerantChunkProcessor.write(FaultTolerantChunkProcessor.java:371)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:178)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:74)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:268)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:76)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:367)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:143)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:242)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:198)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:348)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.flow.FlowJob.access$100(FlowJob.java:43)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.flow.FlowJob$JobFlowExecutor.executeStep(FlowJob.java:135)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:103)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:250)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:110)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48)[spring-core-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:105)[spring-batch-core-2.0.4.RELEASE.jar:na] at com.davidkarlsen.zipcodeservice.dataload.BatchTest.testReadFile(BatchTest.java:60)[test-classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_17] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_17] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_17] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_17] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)[junit-4.7.jar:na] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)[junit-4.7.jar:na] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)[junit-4.7.jar:na] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)[junit-4.7.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)[spring-test-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)[spring-test-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)[spring-test-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)[spring-test-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)[junit-4.7.jar:na] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)[junit-4.7.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)[junit-4.7.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)[junit-4.7.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)[junit-4.7.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)[junit-4.7.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)[spring-test-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:236)[junit-4.7.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)[spring-test-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)[surefire-junit4-2.4.3.jar:2.4.3] at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)[surefire-api-2.4.3.jar:2.4.3] at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)[surefire-api-2.4.3.jar:2.4.3] at org.apache.maven.surefire.Surefire.run(Surefire.java:177)[surefire-api-2.4.3.jar:2.4.3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_17] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_17] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_17] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_17] at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)[surefire-booter-2.4.3.jar:2.4.3] at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)[surefire-booter-2.4.3.jar:2.4.3] Caused by: org.springframework.batch.item.adapter.DynamicMethodInvocationException: java.lang.reflect.InvocationTargetException at org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator.doInvoke(AbstractMethodInvokingDelegator.java:115)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator.invokeDelegateMethodWithArgument(AbstractMethodInvokingDelegator.java:67)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.item.adapter.ItemWriterAdapter.write(ItemWriterAdapter.java:36)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:156)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:137)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.core.step.item.FaultTolerantChunkProcessor$3.doWithRetry(FaultTolerantChunkProcessor.java:284)[spring-batch-core-2.0.4.RELEASE.jar:na] at org.springframework.batch.retry.support.RetryTemplate.doExecute(RetryTemplate.java:231)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] ... 56 more Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_17] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_17] at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)[spring-core-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator.doInvoke(AbstractMethodInvokingDelegator.java:112)[spring-batch-infrastructure-2.0.4.RELEASE.jar:na] ... 62 more Caused by: org.springframework.dao.DataIntegrityViolationException: could not insert: [com.davidkarlsen.zipcodeservice.domain.types.ZipCode]; SQL [insert into zip_code (id, addressType_name, city, county_countyId, name, zipCode) values (null, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [com.davidkarlsen.zipcodeservice.domain.types.ZipCode] at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637)[spring-orm-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:101)[spring-orm-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)[spring-tx-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.orm.jpa.JpaAccessor.translateIfNecessary(JpaAccessor.java:152)[spring-orm-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:188)[spring-orm-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.orm.jpa.JpaTemplate.merge(JpaTemplate.java:271)[spring-orm-3.0.0.RELEASE.jar:3.0.0.RELEASE] at com.davidkarlsen.zipcodeservice.dao.ZipCodeDaoImpl.merge(ZipCodeDaoImpl.java:31)[classes/:na] ... 67 more Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [com.davidkarlsen.zipcodeservice.domain.types.ZipCode] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:64)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2176)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2656)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.ejb.event.EJB3MergeEventListener.saveWithGeneratedId(EJB3MergeEventListener.java:43)[hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA] at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:314)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:282)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:237)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:705)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:689)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:693)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:235)[hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA] at org.springframework.orm.jpa.JpaTemplate$6.doInJpa(JpaTemplate.java:273)[spring-orm-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:183)[spring-orm-3.0.0.RELEASE.jar:3.0.0.RELEASE] ... 69 more Caused by: java.sql.SQLException: Violation of unique constraint SYS_CT_52: duplicate value(s) for column(s) ZIPCODE,CITY,NAME,ADDRESSTYPE_NAME,COUNTY_COUNTYID in statement [insert into zip_code (id, addressType_name, city, county_countyId, name, zipCode) values (null, ?, ?, ?, ?, ?)] at org.hsqldb.jdbc.Util.throwError(Unknown Source)[hsqldb-1.8.0.10.jar:private-2008/06/01-10:22:29] at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)[hsqldb-1.8.0.10.jar:private-2008/06/01-10:22:29] at org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:57)[hibernate-core-3.3.2.GA.jar:3.3.2.GA] ... 87 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 7 months ago
    Unknown user
    Once, 6 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    2 more bugmates