你好,cat使用时server端日志报 [TcpSocketSender] Error when sending message over TCP socket! java.lang.NoClassDefFoundError: io/netty/buffer/PoolThreadCache

mtb9vblg  于 2021-11-29  发布在  Java
关注(0)|答案(1)|浏览(344)

项目中cat-client包的netty和war包上的netty版本均为4.1.51.Final(一开始war包上的不一致,调整到4.1.51.Final),还是报这个错误。请教一下怎么解决

[02-20 17:01:00.534] [ERROR] [TcpSocketSender] Error when sending message over TCP socket!
java.lang.NoClassDefFoundError: io/netty/buffer/PoolThreadCache
at io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.initialValue(PooledByteBufAllocator.java:458)
at io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.initialValue(PooledByteBufAllocator.java:444)
at io.netty.util.concurrent.FastThreadLocal.initialize(FastThreadLocal.java:177)
at io.netty.util.concurrent.FastThreadLocal.get(FastThreadLocal.java:142)
at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:337)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:178)
at io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:115)
at com.dianping.cat.message.spi.codec.NativeMessageCodec.encode(NativeMessageCodec.java:110)
at com.dianping.cat.message.io.TcpSocketSender.sendInternal(TcpSocketSender.java:284)
at com.dianping.cat.message.io.TcpSocketSender.processNormalMessage(TcpSocketSender.java:211)
at com.dianping.cat.message.io.TcpSocketSender.run(TcpSocketSender.java:240)
at java.lang.Thread.run(Thread.java:748)
at org.unidal.helper.Threads$RunnableThread.run(Threads.java:294)

相关问题