java.lang.ClassCastException: com.vmware.vim25.NasDatastoreInfo cannot be cast to com.vmware.vim25.VmfsDatastoreInfo

GitHub | S-O | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    datastore.discovery does not distinguish between different datastore types

    GitHub | 2 years ago | S-O
    java.lang.ClassCastException: com.vmware.vim25.NasDatastoreInfo cannot be cast to com.vmware.vim25.VmfsDatastoreInfo

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.vmware.vim25.NasDatastoreInfo cannot be cast to com.vmware.vim25.VmfsDatastoreInfo

      at net.djarvur.vmbix.VmBix$Connection.getDatastores()
    2. net.djarvur.vmbix
      VmBix$Connection.run
      1. net.djarvur.vmbix.VmBix$Connection.getDatastores(Unknown Source)
      2. net.djarvur.vmbix.VmBix$Connection.checkAllPatterns(Unknown Source)
      3. net.djarvur.vmbix.VmBix$Connection.run(Unknown Source)
      3 frames