1

MQTT 协议适配器未启动,并且在其日志中我看到了消息io.vertx.core.VertxException: OpenSSL is not available。这是什么意思,可能是什么原因?

11:10:18.131 [main] ERROR o.e.h.a.m.i.Application$$EnhancerBySpringCGLIB$$f98773bb - exception occurred during startup, shutting down ...
java.util.concurrent.ExecutionException: io.vertx.core.VertxException: OpenSSL is not available
   at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
   at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2022)
   at org.eclipse.hono.service.AbstractBaseApplication.run(AbstractBaseApplication.java:160)
   at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804)
   at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
   at org.eclipse.hono.adapter.mqtt.impl.Application.main(Application.java:37)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
   at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
   at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
   at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:593)
Caused by: io.vertx.core.VertxException: OpenSSL is not available
4

1 回答 1

1

请检查您是否已将nativeTlsRequired协议适配器配置中的属性设置为true. 默认的 Hono 容器不包含netty-tcnative. 要启用此选项,请按照 Hono 管理员指南中的说明或构建您自己的容器映像。

于 2019-10-01T11:54:48.993 回答