io.netty.handler.codec.DecoderException: java.lang.ClassCastException: org.ethereum.util.RLPItem cannot be cast to org.ethereum.util.RLPList

GitHub | zilm13 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Not fatal RLPList cast error

    GitHub | 5 months ago | zilm13
    io.netty.handler.codec.DecoderException: java.lang.ClassCastException: org.ethereum.util.RLPItem cannot be cast to org.ethereum.util.RLPList

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.ethereum.util.RLPItem cannot be cast to org.ethereum.util.RLPList

      at org.ethereum.core.Block.parseRLP()
    2. org.ethereum.core
      Block.getShortHash
      1. org.ethereum.core.Block.parseRLP(Block.java:133)
      2. org.ethereum.core.Block.getShortHash(Block.java:445)
      2 frames
    3. org.ethereum.net
      MessageCodec.decode
      1. org.ethereum.net.eth.message.NewBlockMessage.toString(NewBlockMessage.java:81)
      2. org.ethereum.net.rlpx.MessageCodec.decodeMessage(MessageCodec.java:139)
      3. org.ethereum.net.rlpx.MessageCodec.decode(MessageCodec.java:87)
      4. org.ethereum.net.rlpx.MessageCodec.decode(MessageCodec.java:37)
      4 frames
    4. Netty
      ByteToMessageDecoder.channelRead
      1. io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81)
      2. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89)
      3. io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      5. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      6. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
      6 frames
    5. org.ethereum.net
      NettyByteToMessageCodec.channelRead
      1. org.ethereum.net.rlpx.NettyByteToMessageCodec.channelRead(NettyByteToMessageCodec.java:56)
      1 frame
    6. Netty
      SingleThreadEventExecutor$2.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      2. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      3. io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:152)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      5. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      6. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
      7. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      8. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
      9. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
      10. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
      11. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
      12. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
      12 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame