My HA-JDBC version is 3.0.2. I set my cluster config file like this:
<?xml version="1.0" encoding="UTF-8"?>
<ha-jdbc xmlns="urn:ha-jdbc:cluster:3.0">
<distributable id="jgroups">
<property name="stack">my-sync.xml</property>
<property name="timeout">60000</property>
</distributable>
...
</ha-jdbc>
Then I get an exception:
stack is not a valid property of net.sf.hajdbc.distributed.jgroups.JGroupsCommandDispatcherFactory.
This is because JGroupsCommandDispatcherFactory class only have setStack method, doesn't have getStack method, then in unmarshal process:
Map<String, Map.Entry<PropertyDescriptor,="" PropertyEditor="">> descriptors = findDescriptors(result.getClass());
get an empty descriptor map, and throw out an IllegalArgumentException.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My HA-JDBC version is 3.0.2. I set my cluster config file like this:
<?xml version="1.0" encoding="UTF-8"?>
<ha-jdbc xmlns="urn:ha-jdbc:cluster:3.0">
<distributable id="jgroups">
<property name="stack">my-sync.xml</property>
<property name="timeout">60000</property>
</distributable>
...
</ha-jdbc>
Then I get an exception:
stack is not a valid property of net.sf.hajdbc.distributed.jgroups.JGroupsCommandDispatcherFactory.
This is because JGroupsCommandDispatcherFactory class only have setStack method, doesn't have getStack method, then in unmarshal process:
Map<String, Map.Entry<PropertyDescriptor,="" PropertyEditor="">> descriptors = findDescriptors(result.getClass());
get an empty descriptor map, and throw out an IllegalArgumentException.
This is fixed in the latest code from the 3.0 branch. We are due for a 3.0.3 release...
OK, Can you give me the fixing code? Thank you.
https://github.com/pferraro/ha-jdbc/commit/bd5cd86f36cd28185f666295abaa2e7771fcf810