kettle数据导出为excel2007以上格式报错处理
(2019-10-31 11:23:15)
标签:
kettle导出excel报错kettle导出表格报错kettle导出excel2007 |
分类: KETTLE学习 |
一、错误描述
ERROR (version 5.3.0.0-213, build 1 from 2019-05-29_12-17-08 by buildguy) : Unexpected error
ERROR (version 5.3.0.0-213, build 1 from 2019-05-29_12-17-08 by buildguy) : org.pentaho.di.core.exception.KettleException:
org.apache.commons.vfs.FileSystemException: File closed.
File closed.
at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.closeOutputFile(ExcelWriterStep.
at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.processRow(ExcelWriterStep.
at org.pentaho.di.trans.step.RunThread.run(RunThread.
at
Caused by: org.apache.commons.vfs.FileSystemException: File closed.
at org.apache.commons.vfs.util.MonitorOutputStream.assertOpen(Unknown Source)
at org.apache.commons.vfs.util.MonitorOutputStream.flush(Unknown Source)
at
at
at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.closeOutputFile(ExcelWriterStep.
...
二、处理方法
首先查看你安装KETTLE的计算机上,CMD命令窗口中执行java -version 命令查看已安装的jdk的版本号,如果是1.8及以上的版本,就会导致上面的错误,只需要卸载已安装的JDK,在官网地址:https://www.oracle.com/technetwork/java/javase/archive-139210.html 下载JDK1.7,重新安装JDK为1.7及更早的版本,问题即可解决。
三、输出控件配置注意事项
文件&工作表选项卡配置:
1.扩展名 选择:xlsx[Excel 2007 and above]
2.Stream XSLX data 打钩

加载中…