16:18:01.535 [main] ERROR net.nettime.mobileimsdk.server.bridge.MQProvider - [IMMQ-↓] - [startWorker()中] conn.createChannel()或Consumer操作时出错了,本次startWorker没有继续【暂停5秒后重试startWorker()】!
java.io.IOException: null
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:105)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:101)
at com.rabbitmq.client.impl.ChannelN.basicConsume(ChannelN.java:1255)
at com.rabbitmq.client.impl.recovery.AutorecoveringChannel.basicConsume(AutorecoveringChannel.java:471)
at com.rabbitmq.client.impl.recovery.AutorecoveringChannel.basicConsume(AutorecoveringChannel.java:461)
at com.rabbitmq.client.impl.recovery.AutorecoveringChannel.basicConsume(AutorecoveringChannel.java:456)
at net.nettime.mobileimsdk.server.bridge.MQProvider.startWorker(MQProvider.java:494)
at net.nettime.mobileimsdk.server.bridge.MQProvider.whenConnected(MQProvider.java:314)
at net.nettime.mobileimsdk.server.bridge.MQProvider.start(MQProvider.java:277)
at net.openmob.mobileimsdk.server.ServerCoreHandler.lazyStartupBridgeProcessor(ServerCoreHandler.java:137)
at net.openmob.mobileimsdk.server.ServerLauncher.startup(ServerLauncher.java:218)
at com.screen.mobilesdk.ServerLauncherImpl.main(ServerLauncherImpl.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'q_web2app' in vhost '/', class-id=60, method-id=20)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:366)
at com.rabbitmq.client.impl.ChannelN.basicConsume(ChannelN.java:1253)
... 14 common frames omitted
“ q_web2app”这个队列对于MobileIMSDK这边来说它是消费者,理论上这个队列应该由生产者来创建,如果你是用MobileIMSDK(APP端im框架)和MobileIMSDK-Web(Web端im框架)来实现互通的话,MobileIMSDK-Web作为消息web to app这个方向的消息队列生产者来说,它会保证这个队列的建立,不需要MobileIMSDK这个消费者来关心。