服务器启动显示成功,但是客户端连接服务器就报错了

dotcoolgirl 2019-12-10 1800

09/12/2019 23:14:00,424 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 113  - An unexpected exception was caught while processing MQTT message. Closing Netty channel. CId=null, cause=null, errorMessage=null

09/12/2019 23:14:00,424 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.moquette.server.netty.metrics.MQTTMessageLogger.logMQTTMessage(MQTTMessageLogger.java:53)

09/12/2019 23:14:00,424 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.moquette.server.netty.metrics.MQTTMessageLogger.channelRead(MQTTMessageLogger.java:43)

09/12/2019 23:14:00,424 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.moquette.server.netty.metrics.MessageMetricsHandler.channelRead(MessageMetricsHandler.java:54)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)

09/12/2019 23:14:00,425 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:350)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

09/12/2019 23:14:00,426 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:287)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.moquette.server.netty.metrics.BytesMetricsHandler.channelRead(BytesMetricsHandler.java:55)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

09/12/2019 23:14:00,427 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)

09/12/2019 23:14:00,428 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)

09/12/2019 23:14:00,429 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)

09/12/2019 23:14:00,429 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)

09/12/2019 23:14:00,429 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)

09/12/2019 23:14:00,429 [nioEventLoopGroup-3-1] ERROR NettyMQTTHandler 116  - java.lang.Thread.run(Thread.java:748)

最新回复 (6)
  • x86 2019-12-10
    引用 2
    你用的是什么客户端连接的?做了什么修改?
  • dotcoolgirl 2019-12-10
    引用 3
    用的是flutter做的客户端,连接官网是可以的。
    服务端获得api版本信息也是可以

    {
    tags: "null",
    branch: "wildfirechat",
    dirty: "null",
    remoteOriginUrl: "https://github.com/wildfirechat/server.git",
    commitId: "null",
    commitIdAbbrev: "b3ddda7",
    describe: "0.20-159-gb3ddda7",
    describeShort: "null",
    commitUserName: "heavyrain2012",
    commitUserEmail: "heavyrain.lee@gmail.com",
    commitMessageFull: "update version to 0.29 ",
    commitMessageShort: "update version to 0.29",
    commitTime: "20191023210743",
    closestTagName: "null",
    closestTagCommitCount: "null",
    buildUserName: "heavyrain2012",
    buildUserEmail: "heavyrain.lee@gmail.com",
    buildTime: "20191023210829",
    buildHost: "null",
    buildVersion: "null"
    }
    不知道怎么回事哦,请大佬指点
  • x86 2019-12-11
    引用 4
    看上面的日志,感觉clientId为空。

    flutter客户端,连接部分你是基于什么来做的?
  • dotcoolgirl 2019-12-11
    引用 5
    昨天尝试连接8080的接口。提示 int ConnectionStatusSecretKeyMismatch = -6; 请问这个怎么回事呢。我看了官方的介绍,但是不知道什么原因
  • x86 2019-12-12
    引用 6
    可能是连接用的clientId和获取token时用的clientId不一致导致的。
  • xxxxx 2020-1-6
    引用 7
    同样的问题,请问您解决了没?
返回