【发布时间】:2014-05-01 18:42:37
【问题描述】:
有几天我们有 JDK8。我试图用 SPDY 服务器运行 Jetty。在 JDK8 中没有 NPN 支持,所以它以:
[qtp22068985-16-selector-ServerConnectorManager@12e7b0e/1] WARN
org.eclipse.jetty.io.SelectorManager - Exception while notifying connection SslConnection@e1448a{NEED_UNWRAP,eio=-1/-1,di=-1} ->
NPNServerConnection@382d40{IDLE}
java.lang.NoSuchMethodError:
sun.security.ssl.HandshakeHash.<init>(ZZLjava/util/Set;)V
at sun.security.ssl.Handshaker.activate(Handshaker.java:493)
我在 CLASSPATH 上使用npn-boot-1.1.6.v20130911.jar 运行它,它适用于最新的 JDK7。
关于如何在 JDK8 上使用 SPDY 运行 Jetty 有什么解决方法吗?
【问题讨论】: