KlausMklsn
Contributor
Contributor

com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: null

com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: null Please see the server log to find more detail regarding exact cause of the failure.
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:136)
at com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:253)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:206)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:293)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:92)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:161)
at com.sun.proxy.$Proxy41.queryVsanManagedStorageSpaceUsage(Unknown Source)

 

Getting this error when trying to invoke these methods QueryVsanManagedStorageSpaceUsage, VsanQueryEntitySpaceUsage by using sample code from vsan 7.0u2 sdk java.

Code which invokes these Methods:

VsanhealthPortType healthPort; //initialised

VsanHealthConnection connection = (VsanHealthConnection) this.connection;

//QueryVsanManagedStorageSpaceUsage - not able to hit

QueryVsanManagedStorageSpaceUsageSpec queryVsanManagedStorageSpaceUsageSpec = new QueryVsanManagedStorageSpaceUsageSpec();

List<String> list1 = queryVsanManagedStorageSpaceUsageSpec.getDatastoreTypes();
list1.add(String.valueOf(VsanDatastoreType.PMEM));
list1.add(String.valueOf(VsanDatastoreType.VSAN));
list1.add(String.valueOf(VsanDatastoreType.VSAN_DATASTORE_TYPE_UNKNOWN));
list1.add(String.valueOf(VsanDatastoreType.VSANDIRECT));

try {
 
    Object obj3 = healthPort.queryVsanManagedStorageSpaceUsage(connection.getVsanSpaceReportServiceInstanceReference(),VsanUtil.ConvertToHealthMoRef(cluster),queryVsanManagedStorageSpaceUsageSpec);

  
}catch (Exception e){
    e.printStackTrace();
}



//VsanQueryEntitySpaceUsage - not able to hit

VsanSpaceQuerySpec vsanSpaceQuerySpec = new VsanSpaceQuerySpec();

vsanSpaceQuerySpec.setEntityType(String.valueOf(VsanSpaceReportingEntityType.HOST));

try {
     Object obj4 = healthPort.vsanQueryEntitySpaceUsage(connection.getVsanSpaceReportServiceInstanceReference(), VsanUtil.ConvertToHealthMoRef(cluster), vsanSpaceQuerySpec);
}catch(Exception e){
    e.printStackTrace();
}

I am not able to identify what is the cause of the error.The error is coming for both the function.Can anyone guide me what would be the cause of the error and if there is any way to get the error message which could make sense.

0 Kudos
0 Replies