Bug #72546 C/J Fabric createGroup() throws ClassCastException
Submitted: 6 May 2014 9:51 Modified: 2 Jun 2015 1:52
Reporter: Jess Balint Email Updates:
Status: Closed Impact on me:
Category:Connector / J Severity:S3 (Non-critical)
Version:5.1.30 OS:Any
Assigned to: Jess Balint CPU Architecture:Any
Tags: fabric

[6 May 2014 9:51] Jess Balint
The C/J Fabric administration API provides a method to create a group, but it does not work. The following exception is thrown:

Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
        at com.mysql.fabric.Response.<init>(Response.java:37)
        at com.mysql.fabric.proto.xmlrpc.XmlRpcClient.errorSafeCallMethod(XmlRpcClient.java:114)
        at com.mysql.fabric.proto.xmlrpc.XmlRpcClient.createGroup(XmlRpcClient.java:266)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        ... 12 more

How to repeat:
try to create a group through the admin API

Suggested fix:
handle response types correctly
[2 Jun 2015 1:52] Daniel So
Added the following entry to the Connector/J 5.1.36 changelog:

"When using Connector/J with MySQL Fabric, the createGroup() method failed with a class cast exception."