运用dubbo 启动服务提供者时报错误Connection refused: no further information

java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn S e n d T h r e a d . r u n ( C l i e n t C n x n . j a v a : 1141 ) 17 : 07 : 12 , 917 D E B U G C l i e n t C n x n S o c k e t N I O : 203 − I g n o r i n g e x c e p t i o n d u r i n g s h u t d o w n i n p u t j a v a . n i o . c h a n n e l s . C l o s e d C h a n n e l E x c e p t i o n a t s u n . n i o . c h . S o c k e t C h a n n e l I m p l . s h u t d o w n I n p u t ( S o c k e t C h a n n e l I m p l . j a v a : 780 ) a t s u n . n i o . c h . S o c k e t A d a p t o r . s h u t d o w n I n p u t ( S o c k e t A d a p t o r . j a v a : 399 ) a t o r g . a p a c h e . z o o k e e p e r . C l i e n t C n x n S o c k e t N I O . c l e a n u p ( C l i e n t C n x n S o c k e t N I O . j a v a : 200 ) a t o r g . a p a c h e . z o o k e e p e r . C l i e n t C n x n SendThread.run(ClientCnxn.java:1141) 17:07:12,917 DEBUG ClientCnxnSocketNIO:203 - Ignoring exception during shutdown input java.nio.channels.ClosedChannelException at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:780) at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:399) at org.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:200) at org.apache.zookeeper.ClientCnxn SendThread.run(ClientCnxn.java:1141)17:07:12,917DEBUGClientCnxnSocketNIO:203Ignoringexceptionduringshutdowninputjava.nio.channels.ClosedChannelExceptionatsun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:780)atsun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:399)atorg.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:200)atorg.apache.zookeeper.ClientCnxnSendThread.cleanup(ClientCnxn.java:1246)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1170)

解决:首先确认服务注册中心有没有开启,之后检查项目的指定注册中心时有没有写错端口,

 <dubbo:registry address="zookeeper://xxxx:2181"/>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值