Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

retrievePropertiesEx() is throwing an Exception: javax.xml.ws.soap.SOAPFaultException even when sessionIsActive() method says that the session is active.

$
0
0

Hi All,

          I am having a problem while using method/api  retrievePropertiesEx(). retrievePropertiesEx()  is throwing an Exception: javax.xml.ws.soap.SOAPFaultException: The object has already been deleted or has not been completely created.

But just before retrieving properties, calling the method sessionIsActive() methods says that the session is active. But still I am getting the SOAPFaultException and hence all the subsequent tries to retrieve the properties for different Managed Object References are failing.  But once I reset the connection to Vcenter(i.e disconnecting and reconnecting), everything goes fine and I am able to retrieve the properties.

One thing I observed was that for 2 days, the connection to Vcenter was not reset. On the 2nd day, my request to retrieve properties using retrievePropertiesEx()  started  throwing the exception: javax.xml.ws.soap.SOAPFaultException whenever I tried to retrieve the properties for MORs. This gets solved by resetting the connection to Vcenter. But what is the problem? Is the session not active?  Also, I am not specifying any timeout while connecting to Vcenter. Is there any time-out that is happening from Vcenter side? If it has timed out, then the  sessionIsActive() method should have told me that the session is not valid. Please help me as I am unable to get the problem that is occurring.


Viewing all articles
Browse latest Browse all 1577

Trending Articles