You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there are multiple versions of io.netty:netty-all in dubbo-samples-ssl/dubbo-samples-ssl-provider of version 1.0-SNAPSHOT. As shown in the following dependency tree, according to Maven "nearest wins" strategy, only io.netty:netty-all:4.1.36.Final can be loaded, io.netty:netty-all:4.1.25.Final will be shadowed.
However, several methods defined in shadowed version io.netty:netty-all:4.1.25.Final are referenced by client project via org.apache.dubbo:dubbo:2.7.7 but missing in the actually loaded version io.netty:netty-all:4.1.36.Final.
For instance, the following missing method(defined in io.netty:netty-all:4.1.25.Final) are actually referenced by dubbo-samples-ssl-provider, which will introduce a runtime error(i.e., "NoSuchMethodError") into dubbo-samples-ssl-provider.
<io.netty.channel.nio.NioEventLoopGroup: void (int,java.util.concurrent.ThreadFactory)> is invoked by dubbo-samples-ssl-provider via the following path:
<io.netty.channel.DelegatingChannelPromiseNotifier: io.netty.channel.ChannelFuture sync()> is invoked by dubbo-samples-ssl-provider via the following path:
<io.netty.bootstrap.AbstractBootstrap: io.netty.channel.ChannelFuture bind(java.lang.String,int)> is invoked by dubbo-samples-ssl-provider via the following path:
<io.netty.bootstrap.ServerBootstrap: io.netty.bootstrap.ServerBootstrap group(io.netty.channel.EventLoopGroup,io.netty.channel.EventLoopGroup)> is invoked by dubbo-samples-ssl-provider via the following path:
<io.netty.bootstrap.ServerBootstrap: io.netty.bootstrap.ServerBootstrap childHandler(io.netty.channel.ChannelHandler)> is invoked by dubbo-samples-ssl-provider via the following path:
Change direct dependency io.netty:netty-all from 4.1.36.Final to 4.1.25.Final. Because version 4.1.25.Final includes the above missing methods and is compatible with other versions of io.netty:netty-all in the project.
Please let me know if this solution you agree to? I can submit a PR to fix it.
Thank you very much for your attention.
Best regards,
Issue description
Hi, there are multiple versions of io.netty:netty-all in dubbo-samples-ssl/dubbo-samples-ssl-provider of version 1.0-SNAPSHOT. As shown in the following dependency tree, according to Maven "nearest wins" strategy, only io.netty:netty-all:4.1.36.Final can be loaded, io.netty:netty-all:4.1.25.Final will be shadowed.
However, several methods defined in shadowed version io.netty:netty-all:4.1.25.Final are referenced by client project via org.apache.dubbo:dubbo:2.7.7 but missing in the actually loaded version io.netty:netty-all:4.1.36.Final.
For instance, the following missing method(defined in io.netty:netty-all:4.1.25.Final) are actually referenced by dubbo-samples-ssl-provider, which will introduce a runtime error(i.e., "NoSuchMethodError") into dubbo-samples-ssl-provider.
Suggested fixing solutions:
Please let me know if this solution you agree to? I can submit a PR to fix it.
Thank you very much for your attention.
Best regards,
Dependency tree----
The text was updated successfully, but these errors were encountered: