org.apache.commons.vfs2.FileSystemException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • If you try to use the delete files job entry to delete files in a folder, but your user does not have permission to any sub-folder at any level deep, the job will fail with the error below. This happens even if you do not have Include Sub-Folders checked. If I am not trying to delete files out of sub-folders it should not matter that I do not have permission to the sub-folders. {noformat} 2016/04/26 10:33:50 - Delete files - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Could not process [c:\temp], exception: Could not find files in "file:///c:/temp". 2016/04/26 10:33:50 - Delete files - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///c:/temp". 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles.ProcessFile(JobEntryDeleteFiles.java:271) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles.execute(JobEntryDeleteFiles.java:236) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.execute(Job.java:723) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.execute(Job.java:864) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.execute(Job.java:545) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.run(Job.java:435) 2016/04/26 10:33:50 - Delete files - Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///c:/temp/Download/test" because it is not a folder. 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:134) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:134) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087) 2016/04/26 10:33:50 - Delete files - ... 7 more {noformat}
    via by Chris Deptula,
  • If you try to use the delete files job entry to delete files in a folder, but your user does not have permission to any sub-folder at any level deep, the job will fail with the error below. This happens even if you do not have Include Sub-Folders checked. If I am not trying to delete files out of sub-folders it should not matter that I do not have permission to the sub-folders. {noformat} 2016/04/26 10:33:50 - Delete files - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Could not process [c:\temp], exception: Could not find files in "file:///c:/temp". 2016/04/26 10:33:50 - Delete files - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///c:/temp". 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles.ProcessFile(JobEntryDeleteFiles.java:271) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles.execute(JobEntryDeleteFiles.java:236) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.execute(Job.java:723) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.execute(Job.java:864) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.execute(Job.java:545) 2016/04/26 10:33:50 - Delete files - at org.pentaho.di.job.Job.run(Job.java:435) 2016/04/26 10:33:50 - Delete files - Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///c:/temp/Download/test" because it is not a folder. 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:134) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:134) 2016/04/26 10:33:50 - Delete files - at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087) 2016/04/26 10:33:50 - Delete files - ... 7 more {noformat}
    via by Chris Deptula,
    • org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///c:/temp". at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092) at org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477) at org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles.ProcessFile(JobEntryDeleteFiles.java:271) at org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles.execute(JobEntryDeleteFiles.java:236) at org.pentaho.di.job.Job.execute(Job.java:723) at org.pentaho.di.job.Job.execute(Job.java:864) at org.pentaho.di.job.Job.execute(Job.java:545) at org.pentaho.di.job.Job.run(Job.java:435) Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///c:/temp/Download/test" because it is not a folder. at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201) at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130) at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:134) at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:134) at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087) ... 7 more
    No Bugmate found.