org.springframework.batch.item.ItemStreamException: Failed to initialize the reader

Stack Overflow | James | 4 months ago
  1. 0

    Spring Batch - File to be read is not available

    Stack Overflow | 4 months ago | James
    org.springframework.batch.item.ItemStreamException: Failed to initialize the reader
  2. 0

    org.springframework.batch.item.ItemStreamException: Failed to initialize the reader

    Stack Overflow | 11 months ago | manohar reddy
    org.springframework.batch.item.ItemStreamException: Failed to initialize the reader
  3. 0

    StaxEventItemWriter error - org.springframework.batch.item.ItemStreamException: File already exists:

    Stack Overflow | 1 month ago | user3358453
    org.springframework.batch.item.ItemStreamException: File already exists: [C:\folder\Sync_0.xml]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Batch - Failed to initialize the reader

    Stack Overflow | 3 years ago | Sam Derin
    org.springframework.batch.item.ItemStreamException: Failed to initialize the reader
  6. 0

    Why is my PathResource not readable?

    Stack Overflow | 2 years ago | Steffen Kreutz
    org.springframework.batch.item.ItemStreamException: Failed to initialize the reader

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Input resource must exist (reader is in 'strict' mode): file [C:\test\TestData.csv]

      at org.springframework.batch.item.file.FlatFileItemReader.doOpen()
    2. Spring Batch Infrastructure
      CompositeItemStream.open
      1. org.springframework.batch.item.file.FlatFileItemReader.doOpen(FlatFileItemReader.java:251)[spring-batch-infrastructure-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      2. org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:144)[spring-batch-infrastructure-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      3. org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:96)[spring-batch-infrastructure-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      3 frames
    3. Spring Batch Core
      SimpleJobLauncher$1.run
      1. org.springframework.batch.core.step.tasklet.TaskletStep.open(TaskletStep.java:310)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      2. org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:197)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      3. org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      4. org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:392)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      5. org.springframework.batch.core.job.SimpleJob.doExecute(SimpleJob.java:135)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      6. org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      7. org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      7 frames
    4. Spring Core
      SyncTaskExecutor.execute
      1. org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      1 frame
    5. Spring Batch Core
      SimpleJobLauncher.run
      1. org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:128)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_91]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_91]
      4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.8.0_91]
      4 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3 frames
    8. Spring Batch Core
      SimpleBatchConfiguration$PassthruAdvice.invoke
      1. org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$PassthruAdvice.invoke(SimpleBatchConfiguration.java:127)[spring-batch-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]
      1 frame
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2 frames
    10. com.sun.proxy
      $Proxy78.run
      1. com.sun.proxy.$Proxy78.run(Unknown Source)[na:na]
      1 frame
    11. Spring Boot AutoConfigure
      JobLauncherCommandLineRunner.run
      1. org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.execute(JobLauncherCommandLineRunner.java:215)[spring-boot-autoconfigure-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      2. org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.executeLocalJobs(JobLauncherCommandLineRunner.java:232)[spring-boot-autoconfigure-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      3. org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.launchJobFromProperties(JobLauncherCommandLineRunner.java:124)[spring-boot-autoconfigure-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      4. org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.run(JobLauncherCommandLineRunner.java:118)[spring-boot-autoconfigure-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      4 frames
    12. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      2. org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:788)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      3. org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:775)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      4. org.springframework.boot.SpringApplication.doRun(SpringApplication.java:366)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:305)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1124)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      7. org.springframework.boot.SpringApplication.run(SpringApplication.java:1113)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]
      7 frames
    13. com.myorg
      LoadApplication.main
      1. com.myorg.LoadApplication.main(LoadApplication.java:15)[bin/:na]
      1 frame