I read SO related questions but the solutions don\'t work for me.
I get the org.springframework.batch.item.ReaderNotOpenException: Reader must be open before i
The issue disappeared when I change the return type of my reader bean from Item to FlatFileItemReader. It is still not clear to me why this is a problem since chunk().reader() accepts ItemReader as an input. I assume that there is some AOP magic under the hood which does FlatFileReader init and matches by the return type.