登录的时候 server抛异常

blingbin 2021-6-27 478

27/06/2021 03:16:29,657 [nioEventLoopGroup-5-10] WARN DefaultChannelPipeline 151 - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. java.lang.NullPointerException at cn.wildfirechat.proto.WFCMessage$GetTokenRequest$Builder.setClientId(WFCMessage.java:57996) at com.xiaoleilu.loServer.action.admin.GetIMTokenAction.action(GetIMTokenAction.java:41) at com.xiaoleilu.loServer.action.Action.doAction(Action.java:90) at com.xiaoleilu.loServer.handler.ActionHandler.doAction(ActionHandler.java:138) at com.xiaoleilu.loServer.handler.ActionHandler.channelRead0(ActionHandler.java:48) at com.xiaoleilu.loServer.handler.ActionHandler.channelRead0(ActionHandler.java:27) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138) at java.lang.Thread.run(Thread.java:748)

最新回复 (6)
  • x86 2021-6-27
    引用 2
    可能是缺少参数,请看下是否包含clientId参数
  • blingbin 2021-6-27
    引用 3
    clientId 调接口的时候吗
  • blingbin 2021-6-27
    引用 4
    clientId 调接口的时候吗  是在header头里?
  • x86 2021-6-28
    引用 5
    是body里面。

    你那个端登录,改了什么东西,怎么改的?
  • blingbin 2021-6-28
    引用 6
    我是android登录,没有改过任何东西。clientId我看android代码里调接口也没传clientId呀
    ===
    没有改过任何代码
  • x86 2021-6-29
    引用 7
    Android里面有调用登录接口的时候,有传的,在AppService.smsLogin里面。

    你加我们开发的微信吧,具体了解下:wfchat
返回