[undertow-dev] Enable HTTP/2 and get JDK9 ALPN not supported

Steve Hu stevehu at gmail.com
Fri Mar 17 21:18:31 EDT 2017


Hi,

I searched this mailing list and one post mentioned that I don't need to
use -Xbootclasspath/p:<path_to_alpn_boot_jar> after 1.4.0Final. I am trying
HTTP/2 on my server with 1.4.10 and Oracle JDK 1.8 but when I start the
server I got the following error. Do I have to use OpenJDK 8? If I switch
to JBoss OpenSSL implementation?

Thanks,

Steve

21:00:36.468 [main]  DEBUG io.undertow - Configuring listener with protocol
HTTPS for interface 0.0.0.0 and port 8843

21:00:36.486 [main]  DEBUG io.undertow - JDK9 ALPN not supported

java.lang.NoSuchMethodException:
javax.net.ssl.SSLParameters.setApplicationProtocols([Ljava.lang.String;)

at java.lang.Class.getMethod(Class.java:1786)

at
io.undertow.protocols.alpn.JDK9AlpnProvider$1.run(JDK9AlpnProvider.java:47)

at
io.undertow.protocols.alpn.JDK9AlpnProvider$1.run(JDK9AlpnProvider.java:43)

at java.security.AccessController.doPrivileged(Native Method)

at
io.undertow.protocols.alpn.JDK9AlpnProvider.<clinit>(JDK9AlpnProvider.java:43)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at java.lang.Class.newInstance(Class.java:442)

at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)

at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)

at java.util.ServiceLoader$1.next(ServiceLoader.java:480)

at io.undertow.protocols.alpn.ALPNManager.<init>(ALPNManager.java:40)

at io.undertow.protocols.alpn.ALPNManager.<clinit>(ALPNManager.java:35)

at
io.undertow.server.protocol.http.AlpnOpenListener.<init>(AlpnOpenListener.java:67)

at
io.undertow.server.protocol.http.AlpnOpenListener.<init>(AlpnOpenListener.java:90)

at io.undertow.Undertow.start(Undertow.java:179)

at com.networknt.server.Server.start(Server.java:170)

at com.networknt.server.Server.main(Server.java:90)

21:00:36.503 [main]  INFO  com.networknt.server.Server - Https Server
started on ip:0.0.0.0 Port:8843
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20170317/8681f1ec/attachment-0001.html 


More information about the undertow-dev mailing list