配置完成后无法连接
Could not create a validated object, cause: ValidateObject failed
查看logs/下面的
messageHandle.log
2018-04-28 03:46:37,125 ERROR handler.MySqlCommandDispatcher - start Session error
java.util.NoSuchElementException: Could not create a validated object, cause: ValidateObject failed
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1233)
at com.meidusa.toolkit.common.poolable.GenericObjectPool.borrowObject(GenericObjectPool.java:382)
at com.meidusa.amoeba.mysql.handler.CommandMessageHandler.startSession(CommandMessageHandler.java:694)
at com.meidusa.amoeba.mysql.handler.MySqlCommandDispatcher.handleQueryCommandMessage(MySqlCommandDispatcher.java:112)
at com.meidusa.amoeba.mysql.handler.MySqlCommandDispatcher$1.run(MySqlCommandDispatcher.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
主从关系没有正确配置导致amoeba.xml 的
<property name="writePool">master</property>
<property name="readPool">multiPool</property>
不能生效