运行sdk中Main.main()抛出异常

skyfly 28天前 50

客户端运行sdk的Main.main(),产生如下错误:

cancel group manager success

5504 [main] INFO  AdminHttpUtils  - http request content: {"group_id":"groupId1","members":["user4","user5"],"is_manager":true,"operator":"user1"}  5507 [main] INFO  AdminHttpUtils  - Request error: 500 error msg:null  java.lang.Exception: Http request error with code:500  at cn.wildfirechat.sdk.utilities.AdminHttpUtils.httpJsonPost(AdminHttpUtils.java:92)  at cn.wildfirechat.sdk.GroupAdmin.muteGroupMemeber(GroupAdmin.java:113)  at cn.wildfirechat.sdk.Main.testGroup(Main.java:417)  at cn.wildfirechat.sdk.Main.testAdmin(Main.java:36)  at cn.wildfirechat.sdk.Main.main(Main.java:22)

此时Server段输出:

360708 [nioEventLoopGroup-5-11] WARN  DefaultChannelPipeline  - 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.io.IOException: 远程主机强迫关闭了一个现有的连接。  at sun.nio.ch.SocketDispatcher.read0(Native Method)  at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)  at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)  at sun.nio.ch.IOUtil.read(IOUtil.java:192)  at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)  at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)  at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100)  at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:372)  at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)  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)

最新回复 (1)
  • x86 27天前
    引用 2
    请参考这个常见问题,检查下im server是否部署成功:https://docs.wildfirechat.cn/faq/server/q2.html
返回