xadisk
  1. xadisk
  2. XADISK-94

Relative path for XADisk System Directory (xaDiskHome) may generate NullPointerException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2.1
    • Component/s: filesystem
    • Labels:
      None

      Description

      Many Thanks to Kane for identifying this.

      If a relative path is provided for xaDiskHome property (XADisk System Directory) in the configuration, and if this directory and none of its ancestor directories exist, then a NullPointerException is thrown:

      _______________________________________________________________________________________________________________

      org.xadisk.filesystem.exceptions.XASystemBootFailureException: .........
      Cause By: java.lang.NullPointerException
      at org.xadisk.filesystem.utilities.FileIOUtility.createDirectoriesIfRequired(FileIOUtility.java:138)
      at org.xadisk.filesystem.utilities.FileIOUtility.createDirectoriesIfRequired(FileIOUtility.java:141)
      at org.xadisk.filesystem.NativeXAFileSystem.<init>(NativeXAFileSystem.java:101)
      ... 4 more

      _______________________________________________________________________________________________________________

      Workaround is to use absolute path for xaDiskHome property, which is anyway a recommended approach for such a global property.

      Thanks,
      Nitin

        Activity

        Hide
        Nitin Verma added a comment -

        Checked-in the changes to trunk.

        Show
        Nitin Verma added a comment - Checked-in the changes to trunk.

          People

          • Assignee:
            Nitin Verma
            Reporter:
            Nitin Verma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: