码迷,mamicode.com
首页 > 数据库 > 详细

amoeba-mysql

时间:2018-04-28 20:59:30      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:except   star   write   validate   .com   cep   creat   cut   isp   

配置完成后无法连接

 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

标签:except   star   write   validate   .com   cep   creat   cut   isp   

原文地址:https://www.cnblogs.com/qxhn/p/8969274.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!