I noticed when restarting jobs after failure, the AbstractExcelItemReader would begin reading from the first row in the spreadsheet. The doRead method is simply calling rowSet.next() and ignoring the AbstractItemCountingItemStreamItemReaders attempt to jump to the correct row. A solution that I found to work was to override the jumpToItem method in AbstractExcelItemReader and simply call rowSet.next until we have the correct row.
I noticed when restarting jobs after failure, the
AbstractExcelItemReader
would begin reading from the first row in the spreadsheet. ThedoRead
method is simply callingrowSet.next()
and ignoring theAbstractItemCountingItemStreamItemReaders
attempt to jump to the correct row. A solution that I found to work was to override thejumpToItem
method inAbstractExcelItemReader
and simply callrowSet.next
until we have the correct row.