归档文件中的Pentaho Kettle错误 - org.apache.commons.vfs.FileSystemException:文件已关闭

时间:2015-05-11 17:23:08

标签: java pentaho kettle

我的作业设置为归档目录中的文件。

当它尝试创建zip文件时,它似乎遇到了错误org.apache.commons.vfs.FileSystemException: File closed。但是,会创建zip文件 ,并将 文件添加到其中。

我已将包裹发送给我的同事,他能够毫无问题地在他的机器上运行它。他拥有相同的Java&水壶版本和我一样。

  

Java:版本8更新45

     

水壶建造:5.3.0.0-213

有谁知道为什么会这样?

Starting job entry
The Zip file [C:\yadayada\Data\Unprocessed\WipBeforeExec_99991231_000000.zip] already exists !
Folder [file:///C:/yadayada/Data/Unprocessed] exists.
New Zip file to create [C:\yadayada\Data\Unprocessed\WipBeforeExec_99991231_000000_20151105_092631981.zipNew Zip file to create [
Found 1file(s) in the directory [C:\yadayada\Data\WIP]
Adding file [file:///C:/yadayada/Data/WIP/20150506101358-PickShip-449380.xml] from directory [C:\yadayada\Data\WIP]
ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : Could not create file [C:\yadayada\Data\Unprocessed\WipBeforeExec_99991231_000000_20151105_092631981.zip] , exception:
ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : 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 java.io.BufferedOutputStream.flush(Unknown Source)
    at java.io.FilterOutputStream.close(Unknown Source)
    at org.pentaho.di.job.entries.zipfile.JobEntryZipFile.processRowFile(JobEntryZipFile.java:627)
    at org.pentaho.di.job.entries.zipfile.JobEntryZipFile.execute(JobEntryZipFile.java:968)
    at org.pentaho.di.job.Job.execute(Job.java:716)
    at org.pentaho.di.job.Job.execute(Job.java:859)
    at org.pentaho.di.job.Job.execute(Job.java:859)
    at org.pentaho.di.job.Job.execute(Job.java:859)
    at org.pentaho.di.job.Job.execute(Job.java:532)
    at org.pentaho.di.job.Job.run(Job.java:424)
ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : Error closing zip file entry for file 'file:///C:/yadayada/Data/WIP'
ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : 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 java.io.BufferedOutputStream.flush(Unknown Source)
    at java.io.FilterOutputStream.close(Unknown Source)
    at org.pentaho.di.job.entries.zipfile.JobEntryZipFile.processRowFile(JobEntryZipFile.java:729)
    at org.pentaho.di.job.entries.zipfile.JobEntryZipFile.execute(JobEntryZipFile.java:968)
    at org.pentaho.di.job.Job.execute(Job.java:716)
    at org.pentaho.di.job.Job.execute(Job.java:859)
    at org.pentaho.di.job.Job.execute(Job.java:859)
    at org.pentaho.di.job.Job.execute(Job.java:859)
    at org.pentaho.di.job.Job.execute(Job.java:532)
    at org.pentaho.di.job.Job.run(Job.java:424)

1 个答案:

答案 0 :(得分:0)

我通过降级到Java 7 Update 76来“解决”这个问题。

我在pentaho网站上找到了以下链接,这有助于暗示降级版本可能会有所帮助。

http://jira.pentaho.com/browse/PDI-12270

http://jira.pentaho.com/browse/PDI-13413

关于问题根源的唯一假设是,如果我没记错,在我为某些SharePoint 2013 PowerShell管理功能安装了一些Windows更新之前,事情最初都在我的计算机上运行。