I'm trying to get all the Related Objects -> Hosts from vSphere web services for my application. However when I do so, I get an error, and no hosts are returned.
I looked at the sample code for ChassisB and I found the function ChassisRackVSphereDataAdapter::initializeHostRelations(), which gets Host references from vCenter and adds them to the Chassis during initialization. The function getHosts() creates a QuerySpec to getData from the dataService. BTW, the function initializeHostRelations() is called whenever processQuery is invoked, and returns after initialization.
I tried to reuse this logic for my application. However, when I attempt to call the getHosts() function during the startup of my app, I get the following errors:
com.vmware.vise.util.session.SessionUtil Requesting threadlocal http request before it's been set
com.vmware.vise.util.session.SessionUtil Existing httpRequest already null. Possible unbalanced clear.
Any ideas what this means? Or suggestions?
Thanks,
Eric
↧
Related Objects: Get Hosts error
↧