Jetty HTTP/2 Client example

断了今生、忘了曾经 提交于 2019-12-06 03:21:32

Make sure you are adding the ALPN jar to the boot classpath and that the jar is the right version for your version of Java. See this table: https://www.eclipse.org/jetty/documentation/current/alpn-chapter.html#alpn-versions

If you are using Java version "1.8.0_51" then the additional VM parameter should be:

-Xbootclasspath/p:/full/path/to/alpn-boot-8.1.4.v20150727.jar

I was getting the same timeout exception, and in my case it turned out that I was not adding the alpn-boot jar to the boot classpath correctly. Specifically, I was not using the full absolute path to the jar. The VM does not give any errors if the boot classpath is invalid. Giving the absolute path fixed the issue for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!