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

GitHub | S-O | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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