What is the cause of reactor-netty 's error?
This article mainly explains "what is the cause of the error of reactor-netty". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the reason for the error of reactor-netty".
Background
The almost identical code has been tested in another project and then migrated to another project, and the associated pom dependencies are the same (only r2dbc-related pom is copied). But there was an inexplicable error, and the tracking code had no clue.
Error representation
Io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen (ChannelPromise) (Unknown Source)
Root cause
The reactor-core version is too low. You still can't find what went wrong with the code during debugging (because there was nothing wrong with the code), but during the trace, you stumbled upon some versions of the jar package that were different between the two projects. Although the code you debugged is the same, change it to be consistent in the spirit of trying. Every time a jar package version is debugged, one is modified at the same time, and after being modified to reactor-core, this problem is finally solved. Later, if you look at the pom dependency of reactor-netty, you can see that the version of reactor-core is indeed higher than the reactor-core version when an error was reported.
Summary
When you encounter some inexplicable problems and the tracking code cannot find a clue, you can try to troubleshoot pom's jar package dependencies. Be sure to check through maven's dependency tree, because some indirectly dependent underlying jar packages do not show references, but multiple upper-level jar may rely on different versions of the underlying jar, resulting in uncertainty about the underlying jar version on which the project depends.
Thank you for your reading, the above is the content of "what is the reason for the error of reactor-netty". After the study of this article, I believe you have a deeper understanding of what is the cause of the error of reactor-netty, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!