Skip to content

Commit 39754cb

Browse files
committed
xenserver: fix XmlRpcClientException: Failed to parse server's response: Expected struct, got array
1 parent 1981e5b commit 39754cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/hypervisors/xenserver/src/main/java/com/xensource/xenapi/ConnectionNew.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.apache.xmlrpc.common.TypeFactoryImpl;
2828
import org.apache.xmlrpc.common.XmlRpcStreamConfig;
2929
import org.apache.xmlrpc.parser.MapParser;
30+
import org.apache.xmlrpc.parser.RecursiveTypeParserImpl;
3031
import org.apache.xmlrpc.parser.TypeParser;
3132
import org.xml.sax.Attributes;
3233
import org.xml.sax.SAXException;
@@ -94,7 +95,7 @@ public XmlRpcClientConfigImpl getConfig()
9495
return config;
9596
}
9697

97-
static class CustomerMapParser extends MapParser {
98+
static class CustomerMapParser extends RecursiveTypeParserImpl {
9899

99100
private int level = 0;
100101
private StringBuffer nameBuffer = new StringBuffer();

0 commit comments

Comments
 (0)