java.lang.UnsupportedOperationException: unsupported message type: DataItemFileRegion (expected: ByteBuf, DefaultFileRegion)

GitHub | akurilov | 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

    Epoll transport doesn't work with custom FileRegion implementation

    GitHub | 5 months ago | akurilov
    java.lang.UnsupportedOperationException: unsupported message type: DataItemFileRegion (expected: ByteBuf, DefaultFileRegion)

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      unsupported message type: DataItemFileRegion (expected: ByteBuf, DefaultFileRegion)

      at io.netty.channel.epoll.AbstractEpollStreamChannel.filterOutboundMessage()
    2. Netty
      AbstractChannelHandlerContext.write
      1. io.netty.channel.epoll.AbstractEpollStreamChannel.filterOutboundMessage(AbstractEpollStreamChannel.java:539)
      2. io.netty.channel.AbstractChannel$AbstractUnsafe.write(AbstractChannel.java:799)
      3. io.netty.channel.DefaultChannelPipeline$HeadContext.write(DefaultChannelPipeline.java:1291)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:748)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:740)
      6. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:826)
      7. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:733)
      8. io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.write(CombinedChannelDuplexHandler.java:525)
      9. io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:111)
      10. io.netty.channel.CombinedChannelDuplexHandler.write(CombinedChannelDuplexHandler.java:345)
      11. io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:748)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:740)
      13. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:826)
      14. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:733)
      15. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:714)
      15 frames