javax.xml.ws.soap.SOAPFaultException: A specified parameter was not correct: deviceKey
2017-11-19 22:45
691 查看
问题描述
虚拟机备份调用 VimPortType().queryChangedDiskAreas(vm, snapshotMOR, diskInfo.getKey(), position, changeId) 接口时,报如下错误:javax.xml.ws.soap.SOAPFaultException: A specified parameter was not correct: deviceKey
问题原因
指定的虚拟机磁盘 key 参数错误,备份是对 vm/vm.vmdk 磁盘的数据读写,key 值也应该是该磁盘对应的 key 值,而非虚拟设备组中其它类型磁盘(如 vm/vm_1.vmdk)的 key。解决方法
遍历虚拟机清单 VirtualDevices 数组中的 VirtualDisk 时,只取第一个 VirtualDisk 对象,以该磁盘对象的 key 值作为 queryChangedDiskAreas 接口的入参。相关文章推荐
- javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- CXF javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing
- 转载:java_min的专栏-webservcie生成客户端代码报错----javax.xml.ws.soap.SOAPFaultException: Cannot create a secure X
- CXF 客户端异常 javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- cxf和spring的整合出现的问题:javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
- Web Service 客户端报 javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element
- webservcie生成客户端代码报错----javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- CXF javax.xml.ws.soap.SOAPFaultException: Unexpected wrapper element
- CXF javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing
- webservcie生成客户端代码报错----javax.xml.ws.soap.SOAPFaultException: Cannot create a sec
- webservcie生成客户端代码报错----javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- javax.xml.ws.soap.SOAPFaultException: 没有Header,拦截器实施拦截
- org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is javax.xml.strea
- 异常:javax.xml.ws.WebServiceException: Could not find wsdl:binding operation info for web method sayHi
- Exception in thread "main" javax.xml.ws.WebServiceException: Could not find wsdl:binding operation i
- javax.xml.ws.webserviceexception class do not have a property of the name
- javax.xml.ws.WebServiceException: WSDL Metadata not available to create the proxy, either Service in
- javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found