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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by akurilov
, 1 year ago
unsupported message type: DataItemFileRegion (expected: ByteBuf, DefaultFileRegion)
java.lang.UnsupportedOperationException: unsupported message type: DataItemFileRegion (expected: ByteBuf, DefaultFileRegion)
at io.netty.channel.epoll.AbstractEpollStreamChannel.filterOutboundMessage(AbstractEpollStreamChannel.java:539)
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(AbstractChannel.java:799)
at io.netty.channel.DefaultChannelPipeline$HeadContext.write(DefaultChannelPipeline.java:1291)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:748)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:740)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:826)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:733)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.write(CombinedChannelDuplexHandler.java:525)
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:111)
at io.netty.channel.CombinedChannelDuplexHandler.write(CombinedChannelDuplexHandler.java:345)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:748)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:740)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:826)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:733)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:714)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.