Menu

I get an exception when try to config distributable configuration

Help
yylqinghao
2014-07-24
2014-07-25
  • yylqinghao

    yylqinghao - 2014-07-24

    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.

     
  • Paul Ferraro

    Paul Ferraro - 2014-07-24

    This is fixed in the latest code from the 3.0 branch. We are due for a 3.0.3 release...

     
  • yylqinghao

    yylqinghao - 2014-07-25

    OK, Can you give me the fixing code? Thank you.

     

Log in to post a comment.