amoeba-mysql

Posted qxhn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了amoeba-mysql相关的知识,希望对你有一定的参考价值。

配置完成后无法连接

 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>

不能生效











以上是关于amoeba-mysql的主要内容,如果未能解决你的问题,请参考以下文章