druid连接数据库报错,配置db.properties写的无错。

枫青鱼 发布于 2019/01/29 11:47
阅读 661
收藏 0

11:40:47,779  INFO DubboProtocol:135 -  [DUBBO] disconected from /192.168.1.103:20881,url:dubbo://192.168.1.103:20881/com.pyg.manager.service.BrandService?anyhost=true&application=pyg-manager-web&check=false&codec=dubbo&dubbo=2.8.4&generic=false&heartbeat=60000&interface=com.pyg.manager.service.BrandService&methods=deleteIds,findOne,update,findBrandByPage,findPage,addBrand,findAll&pid=10796&retries=2&revision=0.0.1-SNAPSHOT&side=consumer&timeout=10000000&timestamp=1548733191429, dubbo version: 2.8.4, current host: 192.168.1.103
11:40:50,159  WARN AbstractClient:160 -  [DUBBO] client reconnect to 192.168.1.103:20881 find error . url: dubbo://192.168.1.103:20881/com.pyg.manager.service.BrandService?anyhost=true&application=pyg-manager-web&check=false&codec=dubbo&dubbo=2.8.4&generic=false&heartbeat=60000&interface=com.pyg.manager.service.BrandService&methods=deleteIds,findOne,update,findBrandByPage,findPage,addBrand,findAll&pid=10796&retries=2&revision=0.0.1-SNAPSHOT&side=consumer&timeout=10000000&timestamp=1548733191429, dubbo version: 2.8.4, current host: 192.168.1.103
com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://192.168.1.103:20881/com.pyg.manager.service.BrandService?anyhost=true&application=pyg-manager-web&check=false&codec=dubbo&dubbo=2.8.4&generic=false&heartbeat=60000&interface=com.pyg.manager.service.BrandService&methods=deleteIds,findOne,update,findBrandByPage,findPage,addBrand,findAll&pid=10796&retries=2&revision=0.0.1-SNAPSHOT&side=consumer&timeout=10000000&timestamp=1548733191429) failed to connect to server /192.168.1.103:20881, error message is:Connection refused: no further information: /192.168.1.103:20881
    at com.alibaba.dubbo.remoting.transport.netty.NettyClient.doConnect(NettyClient.java:141)
    at com.alibaba.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:280)
    at com.alibaba.dubbo.remoting.transport.AbstractClient$1.run(AbstractClient.java:145)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.ConnectException: Connection refused: no further information: /192.168.1.103:20881
    at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
    at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150)
    at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)
    at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
    at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
    ... 3 more

加载中
0
嘴角轻扬30
嘴角轻扬30

IP和端口号正确嘛?

0
你不懂的吧
你不懂的吧
你这dubbo配置写错了吧
 <!-- 使用zookeeper注册中心暴露服务地址 -->
    <dubbo:registry address="zookeeper://192.168.124.131:2181" />
    <!-- 用dubbo协议在20881端口暴露服务 -->
    <dubbo:protocol name="dubbo" port="20881" />
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部