Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-679

NullPointerException in FtpFileObject.doGetLastModifiedTime()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Nightly Builds, 2.2
    • 2.3
    • None

    Description

      This is similar to https://issues.apache.org/jira/browse/VFS-294 but it is very old so I'm not sure how relevant it is.

      We're getting numerous exceptions like:

      org.apache.commons.vfs2.FileSystemException: Could not determine the size of file "ftp://ftp.pbteu.com/VMRType.reg".
       at org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileContent.java:134)
       ...
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
       at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.lang.NullPointerException: null
       at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetContentSize(FtpFileObject.java:449)
       at org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileContent.java:132)
       ... 13 common frames omitted
      

       

      And:

       

      10:21:15.427 [Thread-20] ERROR o.a.c.vfs2.impl.DefaultFileMonitor - Could not determine the last modified timestamp of "ftp://ftp.pbteu.com/VMRType.reg".
      org.apache.commons.vfs2.FileSystemException: Could not determine the last modified timestamp of "ftp://ftp.pbteu.com/VMRType.reg".
       at org.apache.commons.vfs2.provider.DefaultFileContent.getLastModifiedTime(DefaultFileContent.java:156)
       at org.apache.commons.vfs2.impl.DefaultFileMonitor$FileMonitorAgent.check(DefaultFileMonitor.java:526)
       at org.apache.commons.vfs2.impl.DefaultFileMonitor$FileMonitorAgent.access$200(DefaultFileMonitor.java:367)
       at org.apache.commons.vfs2.impl.DefaultFileMonitor.run(DefaultFileMonitor.java:330)
       at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.lang.NullPointerException: null
       at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetLastModifiedTime(FtpFileObject.java:469)
       at org.apache.commons.vfs2.provider.DefaultFileContent.getLastModifiedTime(DefaultFileContent.java:154)
       ... 4 common frames omitted
      

       

      This is happening on 2.2 and on the current trunk. I'm not sure where to start digging from but this is a show-stopper for us. Any help is appreciated!

      Attachments

        Activity

          People

            Unassigned Unassigned
            boris-petrov Boris Petrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: