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

ClassCastException in AbstractFileObject when using OnCall caching

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Windows XP

      Description

      When using OnCall caching in the file system, there is a ClassCastException in the AbstractFileObject because it assumes that every child it will encounter will also be an AbstractFileObject as well.

      Here is the stack trace in question:

      Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.apache.commons.vfs.cache.OnCallRefreshFileObject
      at org.apache.commons.vfs.provider.AbstractFileObject.delete(AbstractFileObject.java:748)
      at org.apache.commons.vfs.impl.DecoratedFileObject.delete(DecoratedFileObject.java:79)
      at org.apache.commons.vfs.cache.OnCallRefreshFileObject.delete(OnCallRefreshFileObject.java:74)

        Attachments

        1. AbstractFileObject.patch
          0.9 kB
          Ethan Killian
        2. AbstractFileObject.patch
          2 kB
          Ethan Killian
        3. AbstractFileObject.patch
          1 kB
          Ethan Killian
        4. LocalFile.patch
          0.7 kB
          Ethan Killian
        5. LocalFile.patch
          1 kB
          Ethan Killian

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ekillian Ethan Killian
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: