Caused by: com.rabbitmq.client.ShutdownSignalException: connection error
周五下午的时候升级了一个环境,跑了批处理sh升级脚本后,启动时报下列错误:
INFO | jvm 1 | 2017/02/24 17:39:09 | java.io.IOException
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:124)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:378)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:36)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:91)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:640)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:615)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.ld.net.rabbitmq.MutiConnectionFactory.newConnection(MutiConnectionFactory.java:28)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.ld.net.route.ExchangeManager.init(ExchangeManager.java:163)
INFO | jvm 1 | 2017/02/24 17:39:09 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2017/02/24 17:39:09 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 1 | 2017/02/24 17:39:09 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.lang.reflect.Method.invoke(Method.java:498)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1710)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1649)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:778)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.ld.net.spring.ContainerInitilzation.start(ContainerInitilzation.java:9)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.ld.net.spring.StartServer.main(StartServer.java:38)
INFO | jvm 1 | 2017/02/24 17:39:09 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2017/02/24 17:39:09 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 1 | 2017/02/24 17:39:09 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.lang.reflect.Method.invoke(Method.java:498)
INFO | jvm 1 | 2017/02/24 17:39:09 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:325)
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.lang.Thread.run(Thread.java:745)
INFO | jvm 1 | 2017/02/24 17:39:09 | Caused by: com.rabbitmq.client.ShutdownSignalException: connection error
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:361)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:226)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:118)
INFO | jvm 1 | 2017/02/24 17:39:09 | ... 33 more
INFO | jvm 1 | 2017/02/24 17:39:09 | Caused by: java.net.SocketException: Connection reset
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.net.SocketInputStream.read(SocketInputStream.java:209)
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.net.SocketInputStream.read(SocketInputStream.java:141)
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
INFO | jvm 1 | 2017/02/24 17:39:09 | at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:139)
INFO | jvm 1 | 2017/02/24 17:39:09 | at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:536)
INFO | jvm 1 | 2017/02/24 17:39:09 | ... 1 more
配置文件、/etc/hosts、防火墙这些都仔细检查了,就是看不出有任何问题,关键连接到另外一个MQ时就没有问题,着实折腾了半个多小时在反复回撤验证。
于是不得不一个个对比,瞬间会想起这套环境的配置和其他机器都不一样,其他环境对外的虚拟主机名都是/route,这台是/,由于2B给客户使用,上线之后就不得不维持着不一致在哪儿,然后就出现上面这个错误了。
只是这错误提示相当坑爹哇,改为正确的vhost之后,问题即解决。这样看来,后面所有的升级都得带上backup/clean的脚本,保不齐有些环境可能因为历史遗留问题就存在不一致的情况。
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error的更多相关文章
- rabbitMQ报错:Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method:
1.输入的机器的 IP:15672进入Raabitmq的登陆管理界面 点击admin,进去点击set permission ok, 在运行应该就不会包这个错了
- RabbitMQException com.rabbitmq.client.ShutdownSignalException: connection error; protocol meth
异常1 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ...
- Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'type' for exchange 'me
在启动RabbitMQ消费端的时候报错:Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol ...
- Amqp整合com.rabbitmq.client.ShutdownSignalException: channel error; protocol method异常处理
java.io.IOException at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:126) at com.rabbitmq ...
- com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'springCloudBus.anonymous.6Xa99MDZTJyHKdPqMyoVEA' in
项目启动报此异常,解决方式:用root权限登陆rabbitmq,admin处添加vhost
- rabbitmq 出现 com.rabbitmq.client.ShutdownSignalException: , ..................
-classpath "C:\Program Files\Java\jdk1.8.0_144\jre\lib\charsets.jar;C:\Program Files\Java\jdk1. ...
- Caused by: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.的几种原因
环境:centos 7+ 1.查看用户是否存在 进入安装目录使用./sbin/rabbitmqctl list_users查看是否存在用户 比如:./usr/local/rabbitmq/rabbit ...
- com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
RabbitMQ 基于Erlang 实现, 客户端可以用Python | Java | Ruby | PHP | C# | Javascript | Go等语言来实现.这里做个java语言的测试.首先 ...
- com.rabbitmq.client.impl.ForgivingExceptionHandler.log:119 -An unexpected connection driver error occured
在服务器上安装了一个RabbitMq,并新创建了一个用户授予了管理员角色,登录控制台查看一切正常,兴高采烈启动项目进行连接,结果一盆冷水下来,报如下错误: o.s.a.r.l.SimpleMessag ...
随机推荐
- Python+Selenium框架设计之框架内封装基类和实现POM
原文地址https://blog.csdn.net/u011541946/article/details/70269965 作者:Anthony_tester 来源:CSDN 博客地址https ...
- cocos2d-x JS 纯代码加载播放plist与png动画
var cache = cc.spriteFrameCache; cache.addSpriteFrames(plist, png); var frames = []; for (var i = 1; ...
- Could not find result map java.lang.Integer] with root cause
错误的代码 <select id="selectpGoodsInfoIdByGoodsId" parameterType="java.lang.Integer&qu ...
- Selenium基本使用(十三)测试中常见问题
我们在使用selenium测试过程中,经常会遇到这样的问题: 1.frame或iframe <iframe id='frame1' name='frame1'> <input typ ...
- 输出调试技巧 PRINTF()
#define PRINTF(...) \ do { \ printf( "%d:%s::",__LINE__, __FUNCTION__);\ printf(__VA_ARGS_ ...
- CSU 1859 Gone Fishing(贪心)
Gone Fishing [题目链接]Gone Fishing [题目类型]贪心 &题解: 这题要先想到枚举走过的湖,之后才可以贪心,我就没想到这,就不知道怎么贪心 = = 之后在枚举每个湖的 ...
- 基于MySQL提供的Yum repository安装MySQL5.6
基于MySQL提供的Yum repository安装MySQL5.6 1:下载YUM包 1.1切换到root用户: 1)su - root 2)wget http://dev.mysql.com/ge ...
- word中加入endnote
http://jingyan.baidu.com/article/f54ae2fc3926d91e92b849c2.html 1.如果安装完endnote后,word中没有出现 endnote菜单,则 ...
- GE与POST方法区别
1.用途. GET方法一般用于查询并获取信息,这意味着它是幂等的(对同一个url的多个请求,返回结果完全一样),因为没有修改资源状态,所以它是安全的.而POST一般用于更新资源信息,既不是幂等,也不是 ...
- 事件响应模型(游戏引擎、JAVA中等应用)
事件,我们在生活中时时在产生事件并且做出响应,如早晨出门时,看见外面下雨了,这时候我们需要带把伞等情况! 在现实生活之中事件分为人为事件和自然事件,那么在计算机操作系统中也不例外,存在两种事件 1.人 ...