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 
<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 
> <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] 
> <mailto:[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/7676C190-C1F7-4BAD-B3B8-EE5D33883215%40googlemail.com.

Reply via email to