https://groups.google.com/g/index-backlink
Pada Kamis, 09 Juli 2020 pukul 16.45.15 UTC+7 Norman Maurer menulis: > I am pretty sure the version of netty you are using is not up to date. > This was “fixed” in 4.1.49.Final: > > https://github.com/netty/netty/pull/10196 > > Bye > Norman > > > On 9. Jul 2020, at 11:36, Tim Fox <[email protected]> wrote: > > Hi All, > > I am trying to use ALPN in Netty with OpenJDK 8u252. Apparently this > version of openJDK has backported the Java 9 ALPN APIs so the Jetty ALPN > stuff shouldn't be necessary. > > According to https://github.com/jetty-project/jetty-alpn-agent > > "Starting with OpenJDK 1.8.0_252 the use of jetty-alpn-agent is not > strictly required anymore since the standard ALPN APIs have been > backported > <https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-November/010573.html> > to > OpenJDK 1.8.0_252 from Java 9" > > However, when I try and start a Netty based server using OpenJDK 8u252 I > get the following exception: > > java.lang.NoClassDefFoundError: org/eclipse/jetty/alpn/ALPN$Provider > at > io.netty.handler.ssl.JettyAlpnSslEngine.newServerEngine(JettyAlpnSslEngine.java:60) > at > io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator$AlpnWrapper.wrapSslEngine(JdkAlpnApplicationProtocolNegotiator.java:141) > at > io.netty.handler.ssl.JdkSslContext.configureAndWrapEngine(JdkSslContext.java:360) > at io.netty.handler.ssl.JdkSslContext.newEngine(JdkSslContext.java:330) > > I.e. the Netty code still seems to want to use the Jetty stuff. Any > thoughts on how I configure Netty correctly so it doesn't look for the > Jetty ALPN stuff when I know I'm using OpenJDK 8u252? > > > > So I guess this must be possible somehow. > > -- > You received this message because you are subscribed to the Google Groups > "Netty discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/netty/0c7e73c4-d7cf-40f0-98d6-d3da3b70e020n%40googlegroups.com > > <https://groups.google.com/d/msgid/netty/0c7e73c4-d7cf-40f0-98d6-d3da3b70e020n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "Netty discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/netty/d97f5ca0-3e31-4f37-9b30-8b668b5301ben%40googlegroups.com.
