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:203−Ignoringexceptionduringshutdowninputjava.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"/>