Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Unable to get VFS File object for filename

  1. #1

    Angry Unable to get VFS File object for filename

    Hi everybody
    i am running kitchen on linux,but sometimes an error occured,the message is below:

    Code:
    Unable to get VFS File object for filename  '/home/hadaemon/.kettle/plugins' : Could not find file with URI  "/home/hadaemon/.kettle/plugins" because it is a relative path, and no base URI was provided.
    this error is not occured every times ,i saw the code of Kettle i found the class KettleVFS handle the relative path and return a full path which use VFS
    Code:
            
            fsm = new StandardFileSystemManager();
            try {
                fsm.setFilesCache(new WeakRefFilesCache());
                fsm.init();
            } catch (FileSystemException e) {
                e.printStackTrace();
            }        
            
            // Install a shutdown hook to make sure that the file system manager is closed
            // This will clean up temporary files in vfs_cache
            Runtime.getRuntime().addShutdownHook(new Thread(new Runnable(){
                @Override
              public void run() {
                  if (fsm != null) {
                      System.out.println("destroy");
                      fsm.close();
                  }
                }
            }));
    Code:
     FileSystemManager fsManager = getInstance().getFileSystemManager();
             ...
             
                if(fsOptions != null) {
                  fileObject = fsManager.resolveFile(filename, fsOptions);
                } else {
                  fileObject = fsManager.resolveFile(filename);
                }
                
                return fileObject;
    from the test i know when the fsManager is closed the error will occured and from the code the fsManager will colsed at the jvm exit,why fsManager closed when i init Kettle anybody can help me!

  2. #2

    Default

    anybody is here, i use Kettle 5.0.1-stable

  3. #3

    Default

    anyon can give me some suggestion,thanks

  4. #4
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    Hi.
    If it is a bug and you can prove it, it's better that you report this using JIRA:
    http://jira.pentaho.com/secure/Dashboard.jspa
    -- Mick --

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.