日志错误信息:
caused by :com.rabbitmq.client.shutdownSignalException:channel error;protocol method:#method<channel.close>(reply-text=NOT_FOUND -no binding event.picture.face.analysisRsp.* between exchange 'event.picture.face.analysis' in vhost '/' and queue 'event.picture.face.analysisRsp' in vhost '/' ,class-id=50,method-id=20)
刚开始,怀疑是配置文件被修改问题【因为是现场生产生产环境】。恢复配置文件内容,还是如此。google 查询有提示重点关键字:no binding,进入http://mqIP:15672。
手动创建queue-test ,绑定exchange和routekey后成功。然后手动去绑定event.picture.face.analysisRsp.*的exchange和routekey,提示失败-内容如日志错误信息。
查看event.picture.face.analysisRsp.*状态是state running,手动创建的队列名称是idle。
解决方案:将配置文件的队列重命名成event.picture.face.analysisRsp1.*即可。