IllegalReferenceCountException in HttpPostMultipartRequestDecoder.
See original GitHub issueNetty version
4.1.22.Final
JVM version (e.g. java -version
)
1.8.0_162
OS version (e.g. uname -a
)
windows 10
The error is observed in versions 4.1.20-4.1.22
HttpPostRequestDecoder decoder = new HttpPostRequestDecoder(request);
try {
...
} finally {
decoder.destroy();
}
When you call decoder.destroy () MixedAttribute.release () for objects is performed 2 times.
io.netty.util.IllegalReferenceCountException: refCnt: 0, increment: 1
at io.netty.util.AbstractReferenceCounted.release0(AbstractReferenceCounted.java:87)
at io.netty.util.AbstractReferenceCounted.release(AbstractReferenceCounted.java:71)
at io.netty.handler.codec.http.multipart.MixedAttribute.release(MixedAttribute.java:320)
at io.netty.handler.codec.http.multipart.HttpPostMultipartRequestDecoder.destroy(HttpPostMultipartRequestDecoder.java:947)
at io.netty.handler.codec.http.multipart.HttpPostRequestDecoder.destroy(HttpPostRequestDecoder.java:247)
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
jooby-project/jooby - Gitter
Hi everybody, I'm using latest version of jooby 2.8.9 and I'm having all my newrelic transactions logged as /NettyDispatcher . Has someone faced ......
Read more >HttpPostMultipartRequestDecoder (Netty API Reference (4.0 ...
Clean all HttpDatas (on Disk) for the current request. void, destroy(). Destroy the HttpPostMultipartRequestDecoder and release all it resources.
Read more >io.netty.util.IllegalReferenceCountException: refCnt: 0 in Netty
if (outboundChannel.isActive()) { outboundChannel.writeAndFlush(msg).addListener(new ChannelFutureListener() { // Snip } ctx.
Read more >Index (Netty API Reference (4.1.59.Final)) - javadoc.io
HttpPostMultipartRequestDecoder. Clean all HttpDatas (on Disk) for the ... IllegalReferenceCountException() - Constructor for exception io.netty.util.
Read more >open_source_license_AirWatch_...
... io/netty/handler/codec/http/multipart/HttpPostMultipartRequestDecoder.java ... io/netty/util/IllegalReferenceCountException.java ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m also not calling
HttpData.release()
so for now I’m using this workaround:Maybe this is related to the unusual way I’m creating the decoder, which is to construct it from a stream (because of reasons).
I think this should be fixed now… please reopen if you still see the issue once you upgraded to latest version