升级至netty 3.6.0。试图替换
DelimiterBasedFrameDecoder与LineBasedFrameDecoder建议在网站上发布。得到以下运行时错误。有什么建议。 ??
使用的代码。
ChannelPipeline pipeline = pipeline();
pipeline.addLast("framer", new LineBasedFrameDecoder(Integer.MAX_VALUE));
运行时错误
java.lang.NoSuchMethodError: org.jboss.netty.handler.codec.frame.LineBasedFrameDecoder.extractFrame(Lorg/jboss/netty/buffer/ChannelBuffer;II)Lorg/jboss/netty/buffer/ChannelBuffer;
at org.jboss.netty.handler.codec.frame.LineBasedFrameDecoder.decode(LineBasedFrameDecoder.java:95)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:422)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)