0

I have mentioned csv file in job.quartz.xml like below.

<bean id="cvsFileItemReader" class="org.springframework.batch.item.file.FlatFileItemReader">
        <!-- Read a csv file -->
        <property name="resource" value="classpath*:csv/input/report.csv" />

And I am getting below error:

Caused by: java.lang.IllegalStateException: Input resource must exist (reader is in 'strict' mode): class path resource [classpath*:csv/input/report.csv]

enter image description here

1
  • The error suggests that the file is not in the classpath. At what location is the file present ? Commented Nov 20, 2013 at 13:12

1 Answer 1

1

Replace classpath* with classpath

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.