RabbitMq 报错An unexpected connection driver error occured ....Socket Closed

An unexpected connection driver error occured

java.net.SocketException: Socket Closed
 at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_201]
 at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[na:1.8.0_201]
 at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[na:1.8.0_201]
 at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[na:1.8.0_201]
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[na:1.8.0_201]
 at java.io.BufferedInputStream.read(BufferedInputStream.java:265) ~[na:1.8.0_201]
 at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288) ~[na:1.8.0_201]
 at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:91) ~[amqp-client-5.9.0.jar:5.9.0]
 at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:184) ~[amqp-client-5.9.0.jar:5.9.0]
 at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:665) ~[amqp-client-5.9.0.jar:5.9.0]
 at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201]

打开我们的RabbitMq网页

查看我们的登录用户名
RabbitMq 报错An unexpected connection driver error occured ....Socket Closed_第1张图片

打开用户设置登录界面
在和当前用户名对应栏中你很有可能看到的是这个界面
RabbitMq 报错An unexpected connection driver error occured ....Socket Closed_第2张图片
如果你的是 No access 那么你的rabbitmq一定连接不上

点击用户名 进入权限设置界面
直接点击即可
RabbitMq 报错An unexpected connection driver error occured ....Socket Closed_第3张图片

RabbitMq 报错An unexpected connection driver error occured ....Socket Closed_第4张图片

刷新再次查看权限

RabbitMq 报错An unexpected connection driver error occured ....Socket Closed_第5张图片
完成 连接成功

如果不行按照网上的说法可能是端口,网关,防火墙等问题 不过我都试过了无效

你可能感兴趣的:(rabbitmq,java)