2
有幾天我們有JDK8。我試圖用SPDY服務器運行Jetty。在JDK8沒有NPN支持,所以它結束:如何在JDK8上使用SPDY運行Jetty?
[[email protected]/1] WARN
org.eclipse.jetty.io.SelectorManager - Exception while notifying connection [email protected]{NEED_UNWRAP,eio=-1/-1,di=-1} ->
[email protected]{IDLE}
java.lang.NoSuchMethodError:
sun.security.ssl.HandshakeHash.<init>(ZZLjava/util/Set;)V
at sun.security.ssl.Handshaker.activate(Handshaker.java:493)
我與npn-boot-1.1.6.v20130911.jar
CLASSPATH上與最新的JDK7的工作運行。
有沒有關於如何在JDK8上使用SPDY運行Jetty的解決方法?
我得到一個異常使用熱點jdk1.8u40'java.lang.NoSuchMethodError:sun.security.ssl.HandshakeHash.setCertificateVerifyAlg'。這隻適用於OpenJDK嗎? – jiggy
JDK 8不支持NPN,您必須使用[ALPN](https://www.eclipse.org/jetty/documentation/current/alpn-chapter.html)。 – sbordet