Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring-batch-integration 1.2.2 not compatible with spring-batch 2.2.2

I have an spring batch project which was working fine old version:

  • spring 3.1.2.RELEASE
  • spring-batch 2.1.9.RELEASE
  • spring-batch-integration 1.2.0.RELEASE

It stopped working when I upgraded version of all dependencies new versions:

  • spring 3.2.5.RELEASE
  • spring-batch 2.2.2.RELEASE
  • spring-batch-integration 1.2.2.RELEASE

Application log says:

Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ServiceAct ivatorFactoryBean#0': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/batch/retry/RetryException

The retry functionality was pulled out of Spring Batch as of 2.2.0. It is now part of a new library, Spring Retry. but spring-batch-integration refers to older spring-batch and causing this error. class ChunkProcessorChunkHandler have import statement import org.springframework.batch.retry.RetryException;

I want to know how to overcome this error? and is there any plan for new version of spring-batch-integration.

like image 897
sandeep Avatar asked Dec 06 '25 00:12

sandeep


1 Answers

We currently have a milestone for 1.3.0 that is available and should work with the 2.2.x branch. We're still working on timing for the 1.3.0 GA release.

like image 115
Michael Minella Avatar answered Dec 08 '25 13:12

Michael Minella



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!