org.springframework.batch.item.ItemStreamException

Failed to initialize the reader

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web49

  • via Spring JIRA by Luke Woodward, 11 months ago
    Failed to initialize the reader
  • via Spring JIRA by Oliver Theissen, 10 months ago
    Failed to initialize the reader
  • Failed to initialize the reader
  • Stack trace

    • org.springframework.batch.item.ItemStreamException: Failed to initialize the reader at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:111) at batch.bug.ItemReaderTest.testItemReader(ItemReaderTest.java:49) at batch.bug.ItemReaderTest.main(ItemReaderTest.java:34) Caused by: java.lang.IllegalStateException: Input resource must exist (reader is in 'strict' mode): class path resource [employeeResource] at org.springframework.batch.item.file.FlatFileItemReader.doOpen(FlatFileItemReader.java:245) at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:108) ... 2 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago