Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by user4567570
, 1 year ago
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
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(ClassPathResource.java:187)	at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:48)	at org.springframework.batch.item.xml.StaxEventItemWriter.open(StaxEventItemWriter.java:427)	at org.springframework.batch.item.xml.StaxEventItemWriter.open(StaxEventItemWriter.java:400)	at org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:96)	at org.springframework.batch.core.step.tasklet.TaskletStep.open(TaskletStep.java:310)	at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:197)	at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)	at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)	at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)	at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)	at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)	at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)	at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)	at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)	at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)	at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:128)	at com.mkyong.App.main(App.java:21)