org.springframework.dao.DataAccessResourceFailureException: Unable to write to file resource: [class path resource [report.xml]]; nested exception is java.io.FileNotFoundException: class path resource [report.xml] cannot be resolved to URL because it does not exist

Stack Overflow | user4567570 | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    org.springframework.dao.DataAccessResourceFailureException: Unable to write to file resource: [class path resource [report.xml]]; Spring Batch

    Stack Overflow | 2 months ago | user4567570
    org.springframework.dao.DataAccessResourceFailureException: Unable to write to file resource: [class path resource [report.xml]]; nested exception is java.io.FileNotFoundException: class path resource [report.xml] cannot be resolved to URL because it does not exist
  2. 0

    Failed to initialize the reader on MultiResourceItemReader

    Stack Overflow | 1 year ago | Panadol Chong
    org.springframework.batch.item.ItemStreamException: Failed to initialize the reader
  3. 0

    MultiresourceItemReader using Annotation

    Stack Overflow | 1 year ago | Madhav Mishra
    java.lang.IllegalStateException: No resources to read. Set strict=false if this is not an error condition.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Tahir 16 times, last 5 months ago
4 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.io.FileNotFoundException

    class path resource [report.xml] cannot be resolved to URL because it does not exist

    at org.springframework.core.io.ClassPathResource.getURL()
  2. Spring Core
    AbstractFileResolvingResource.getFile
    1. org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187)[spring-core-4.3.5.RELEASE.jar:4.3.5.RELEASE]
    2. org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:48)[spring-core-4.3.5.RELEASE.jar:4.3.5.RELEASE]
    2 frames
  3. Spring Batch Infrastructure
    CompositeItemStream.open
    1. org.springframework.batch.item.xml.StaxEventItemWriter.open(StaxEventItemWriter.java:427)[spring-batch-infrastructure-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    2. org.springframework.batch.item.xml.StaxEventItemWriter.open(StaxEventItemWriter.java:400)[spring-batch-infrastructure-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    3. org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:96)[spring-batch-infrastructure-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    3 frames
  4. Spring Batch Core
    SimpleJobLauncher$1.run
    1. org.springframework.batch.core.step.tasklet.TaskletStep.open(TaskletStep.java:310)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    2. org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:197)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    3. org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    4. org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    5. org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    6. org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    7. org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    8. org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    9. org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    10. org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    10 frames
  5. Spring Core
    SyncTaskExecutor.execute
    1. org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)[spring-core-4.3.5.RELEASE.jar:4.3.5.RELEASE]
    1 frame
  6. Spring Batch Core
    SimpleJobLauncher.run
    1. org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:128)[spring-batch-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    1 frame
  7. com.mkyong
    App.main
    1. com.mkyong.App.main(App.java:21)[classes/:na]
    1 frame