I can't see anything obviously wrong. You had more than 10 errors so the skip limit was busted. Those errors weren't consecutive or anything, so it looks like there was just a problem with the data?
I can't see anything obviously wrong. You had more than 10 errors so the skip limit was busted. Those errors weren't consecutive or anything, so it looks like there was just a problem with the data?
Hi Dave,
Thank for answering again,
That's not the problem because, if I set the skip limit in 1 , 10 or 1000 the the process coninues until the skip limit is reached.
In this process, we check that the files showed on each record (at *.md5 files) exist.
If all files are in the path , everything goes ok, but if I just remove only one, the process start looping until the skip limit is reached
Regards,
Mario
That wasn't what I saw in the logs you provided. It seemed like there there were many items processed in between failures, and a different number in each case. If the behaviour is as simple as you describe you should be able to create a proper test case. Then we can understand what is happening more easily.
Ok, I'm going to prepare the test case.
However, I found that if I use just one tokenizer the skip functionality works fine. (leaving the file to process just with the "rem" prefix for each record)
Code:<beans:bean id="itemReaderParent" class="org.springframework.batch.item.file.MultiResourceItemReader" abstract="true"> <beans:property name="delegate"> <beans:bean class="org.springframework.batch.item.file.FlatFileItemReader"> <beans:property name="lineMapper"> <beans:bean class="org.springframework.batch.item.file.mapping.PatternMatchingCompositeLineMapper"> <beans:property name="tokenizers"> <beans:map> <beans:entry key="rem*" value-ref="headerRecordTokenizer" /> <!--<beans:entry key="documentos*" value-ref="customRecordTokenizer" /> --></beans:map> </beans:property> <beans:property name="fieldSetMappers"> <beans:map> <beans:entry key="rem*" value-ref="fieldSetMapper" /> <!--<beans:entry key="documentos*" value-ref="fieldSetMapper" /> --></beans:map> </beans:property> </beans:bean> </beans:property> </beans:bean> </beans:property> </beans:bean>