spring-batch icon indicating copy to clipboard operation
spring-batch copied to clipboard

Inheriting from parent step with skip-limit/retry-limit causes IllegalArgumentException when the inheriting bean doesn't define skip-limit [BATCH-1836]

Open spring-projects-issues opened this issue 13 years ago • 3 comments
trafficstars

Robin Krom opened BATCH-1836 and commented

Hello,

today I finally tried to update from 2.1.6 to 2.1.8 but with 2.1.8.RELEASE the issue reported in BATCH-1739 hasn't been resolved. Due to resolving policies it's hard to try snapshots from where I work, haven't been able to test 2.2.0

The exampleJob.xml in BATCH-1739 should help to test the issue...

Best wishes, Robin


Affects: 2.1.8

Reference URL: http://forum.springsource.org/showthread.php?t=108452

spring-projects-issues avatar Feb 06 '12 02:02 spring-projects-issues

Robin Krom commented

The workaround suggested in BATCH-1739 still works but this is a lot of work and additionally makes our definitions really unreadable. I'm also uncertain about other issues in the inheritance.

Currently I am still staying at 2.1.6.RELEASE, because of this issue.

spring-projects-issues avatar Feb 06 '12 02:02 spring-projects-issues

Dave Syer commented

I think the error message is misleading. If you specify a skip-limit in your child step it should work (that's what we do in the unit tests for this feature - see ParentSkippableStepFactoryBeanParserTests-context.xml). Is that a better workaround while we look into a fix for this new issue?

spring-projects-issues avatar Feb 06 '12 03:02 spring-projects-issues

Can you retry this with the latest release of Spring Batch and report back to us the result? Thank you!

cppwfs avatar Jul 13 '23 18:07 cppwfs