Vert.x HTTP / 2 ALPN不适用于JDK SSL / TLS引擎

时间:2017-06-29 10:09:17

标签: vert.x

使用Vert.x 3.4.2和runtime "io.netty:netty-tcnative-boringssl-static:2.0.5.Final"依赖项,我收到以下错误:

SEVERE: ALPN not available for JDK SSL/TLS engine
io.vertx.core.VertxException: ALPN not available for JDK SSL/TLS engine
    at io.vertx.core.net.impl.SSLHelper.resolveEngineOptions(SSLHelper.java:89)
    at io.vertx.core.net.impl.SSLHelper.<init>(SSLHelper.java:150)
    at io.vertx.grpc.VertxChannelBuilder.build(VertxChannelBuilder.java:148)
    at uk.ashleybye.grpc.tls.Client.start(Client.kt:22)
    at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:111)
    at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:434)
    at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:337)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:445)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
    at java.lang.Thread.run(Thread.java:748)

但是,如果我使用runtime "io.netty:netty-tcnative-boringssl-static:1.1.33.Fork26"依赖项,没问题。这是Vert.x / Netty版本兼容性问题,还是其他什么在起作用?

2 个答案:

答案 0 :(得分:0)

您应确保始终将Verty.x使用Netty tc-native的正确版本。

答案 1 :(得分:0)

如果使用的是vertx 3.8.1。使用以下版本。

implementation 'io.netty:netty-tcnative-boringssl-static:2.0.25.Final'