druid连接数据库报错,配置db.properties写的无错。
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×tamp=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×tamp=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×tamp=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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IP和端口号正确嘛?