ONTAP Tools for VMware vSphere: OTV randomly displays privilege exception
Applies to
- ONTAP Tools for VMware vSphere (OTV)
- Virtual Storage Console for VMware vSphere (VSC)
Issue
When attempting to load the VSC plugin, now known as OTV, an error is displayed in the Storage Systems page.
com.netapp.nvpf.subplugin.tools.vsphere.privilege.client.VSpherePrivilegeValidationException: Managed object reference null is invalid in the request

This same issue can also appear as a (!).

From OTV vsc.log, we can see these errors.
[2024-03-13T17:37:31,552Z] [pool-679-thread-1] [ERROR] RemoteException while opening VIAPI connection of VMwareSession [URL=https://vcenter_server.domain.com:443/sdk, MOREF=null, Locale =en, username=administrator@vsphere.local
com.vmware.vijava.vim25.InvalidLogin: null
at jdk.internal.reflect.GeneratedConstructorAccessor1557.newInstance(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:166) ~[?:?]
at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:404) ~[?:?]
at java.lang.Class.newInstance(Class.java:590) ~[?:?]