Amoeba for mysql读写分离
请求大家的帮助:
我现在服务器上做了个mysql读写分离,用的是Amoeba for mysql读写分离
读写分离成功的做出来了,都很正常,后来把我们的服务放上去,也能正常读写,可是在Amoeba 日志中报出来如下所示的错误:
2012-10-31 17:33:49,240 ERROR handler.MySqlCommandDispatcher - messageDispate error
java.lang.NullPointerException
at com.meidusa.amoeba.route.AbstractQueryRouter.evaluate(AbstractQueryRouter.java:148)
at com.meidusa.amoeba.route.AbstractQueryRouter.selectPool(AbstractQueryRouter.java:411)
at com.meidusa.amoeba.mysql.parser.MysqlQueryRouter.selectPool(MysqlQueryRouter.java:59)
at com.meidusa.amoeba.mysql.parser.MysqlQueryRouter.selectPool(MysqlQueryRouter.java:32)
at com.meidusa.amoeba.route.AbstractQueryRouter.doRoute(AbstractQueryRouter.java:111)
at com.meidusa.amoeba.mysql.handler.MySqlCommandDispatcher.handleMessage(MySqlCommandDispatcher.java:99)
at com.meidusa.amoeba.mysql.net.MysqlClientConnection$2.run(MysqlClientConnection.java:291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
经过观察每次当在网页上进行搜索功能时,后台总报出这样的错误,而搜索不出结果。
大家给看看是什么原因,请求帮助,谢谢了!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也遇到同样的错误!!
[root@cloud bin]# ls
amoeba amoeba.bat amoeba.classworlds
[root@cloud bin]# ./amoeba
log4j:WARN log4j config load completed from file:/amoeba/conf/log4j.xml
log4j:WARN ip access config load completed from file:/amoeba/conf/access_list.conf
2014-05-09 13:56:24,719 INFO net.ServerableConnectionManager - Server listening on /192.168.80.108:8066.
java.lang.NullPointerException
at com.meidusa.amoeba.mysql.handler.CommandMessageHandler.startSession(CommandMessageHandler.java:571)
at com.meidusa.amoeba.mysql.handler.MySqlCommandDispatcher.handleMessage(MySqlCommandDispatcher.java:104)
at com.meidusa.amoeba.mysql.net.MysqlClientConnection$2.run(MysqlClientConnection.java:231)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)