Re: [vertx:36988] Getting io.vertx.core.VertxException: ALPN not available for JDK SSL/TLS engine

1.255 visualizzazioni
Passa al primo messaggio da leggere

Julien Viet

da leggere,
13 set 2016, 02:04:4013/09/16
a ve...@googlegroups.com
Hi,

look at the ALPN section in http://vertx.io/docs/vertx-core/java/#ssl

On Sep 13, 2016, at 2:56 AM, javadevmtl <java.d...@gmail.com> wrote:

Running vertx 3.3.2 and Java JDK 1.8_101 on OS X 10.10.5


io.vertx.core.VertxException: ALPN not available for JDK SSL/TLS engine

at io.vertx.core.net.impl.SSLHelper.resolveEngineOptions(SSLHelper.java:86)

at io.vertx.core.net.impl.SSLHelper.<init>(SSLHelper.java:164)

at io.vertx.core.http.impl.HttpServerImpl.<init>(HttpServerImpl.java:123)

at io.vertx.core.impl.VertxImpl.createHttpServer(VertxImpl.java:242)

at com.swn.service.util.SequenceVerticle.lambda$1(SequenceVerticle.java:75)

at io.vertx.core.impl.FutureImpl.checkCallHandler(FutureImpl.java:158)

at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:100)

at io.vertx.core.impl.ContextImpl.lambda$null$1(ContextImpl.java:315)

at io.vertx.core.impl.ContextImpl.lambda$wrapTask$3(ContextImpl.java:359)

at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:339)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:393)

at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)

at java.lang.Thread.run(Thread.java:745)



Router router = Router.router(vertx);


                    router.get("/api/v1/sequence/:sequence").handler(this::getV1);


                    HttpServerOptions options = new HttpServerOptions()

                           .setUseAlpn(true)

                           .setSsl(true)

                           .setKeyStoreOptions(new JksOptions().setPath("vertx.jks").setPassword("..."));

                   vertx


                            .createHttpServer(options)

                           .requestHandler(router::accept)

                           .listen(port,

                                  result -> {

                                       if (result.succeeded()) {

                                           System.out.println("Server created!");

                                           future.complete();

                                       } else {

                                           System.out.println("Failed to create server!");

                                           future.fail(result.cause());

                                       }

                                   }

                           );




--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/2d12d564-603a-4adb-9186-9eda25221506%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Blake

da leggere,
18 dic 2016, 16:08:1018/12/16
a vert.x
If anyone else runs across this issue, the easy fix is to add this runtime dependency: runtime "io.netty:netty-tcnative-boringssl-static:1.1.33.Fork24"

This is a large package, as it is statically linked rather than dynamically to the dependencies in your system. More info if anyone needs: http://netty.io/wiki/forked-tomcat-native.html
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi