我在运行春季批处理作业时遇到问题。我对批处理作业配置很有信心,因为从过去四天开始,设置工作正常。我附上了运行作业时生成的堆栈跟踪片段。
片段1:
2014-08-20 00:00:01,895 ERROR [STDERR] org.springframework.batch.item.ItemStreamException: Unable to create file: [F:\jboss-4.2.3\config\feeds\jsdnmp\dailybillingfeeds\DailyBillFeed_jsdnmp_19-8-2014.csv]
2014-08-20 00:00:01,896 ERROR [STDERR] at org.springframework.batch.item.util.FileUtils.setUpOutputFile(FileUtils.java:80)
2014-08-20 00:00:01,896 ERROR [STDERR] at org.springframework.batch.item.file.FlatFileItemWriter$OutputState.initializeBufferedWriter(FlatFileItemWriter.java:497)
2014-08-20 00:00:01,896 ERROR [STDERR] at org.springframework.batch.item.file.FlatFileItemWriter$OutputState.access$000(FlatFileItemWriter.java:354)
2014-08-20 00:00:01,896 ERROR [STDERR] at org.springframework.batch.item.file.FlatFileItemWriter.doOpen(FlatFileItemWriter.java:291)
2014-08-20 00:00:01,896 ERROR [STDERR] at org.springframework.batch.item.file.FlatFileItemWriter.open(FlatFileItemWriter.java:281)
2014-08-20 00:00:01,896 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor274.invoke(Unknown Source)
2014-08-20 00:00:01,897 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Snippet 2: Caused by:
2014-08-20 00:00:01,900 ERROR [STDERR] Caused by: java.io.IOException: Could not delete file: F:\jboss-4.2.3\config\feeds\jsdnmp\dailybillingfeeds\DailyBillFeed_jsdnmp_19-8-2014.csv
2014-08-20 00:00:01,900 ERROR [STDERR] at org.springframework.batch.item.util.FileUtils.setUpOutputFile(FileUtils.java:65)
2014-08-20 00:00:01,900 ERROR [STDERR] ... 27 more
我已提供对文件的所有访问权限以进行修改。这是输出文件位置:
F:\jboss-4.2.3\config\feeds\jsdnmp\dailybillingfeeds\DailyBillFeed_jsdnmp_19-8-2014.csv
我尝试了使用appendAllowed和shouldDeleteIfExists的选项,但未能找到任何预期的输出。
根据我的以下信息可能会对您有所帮助:
- 窗口 7
- 日食太阳神
- Jboss 4.2 正式版
- JDK 6