我正在尝试使用“Eclipse Hono 入门”中所述的 Hono Sandbox。
我遵循了所有步骤,但是在启动命令行客户端时我无法连接到服务器:
12:43:22.465 [vert.x-eventloop-thread-0] INFO o.e.h.client.impl.HonoConnectionImpl - max
number of attempts [5] to re-connect to server [hono.eclipseprojects.io:15672, role: unknown] have been made, giving up
12:43:22.489 [vert.x-eventloop-thread-0] INFO o.e.h.client.impl.HonoConnectionImpl - stopping connection attempt to server [hono.eclipseprojects.io:15672, role: unknown] due to terminal
error
io.vertx.core.VertxException: Disconnected
甚至启动客户端:
java -jar hono-cli-*-exec.jar --hono.client.host=hono.eclipseprojects.io --hono.client.port=15672 --hono.client.username=consumer@HONO --hono.client.password=verysecret --tenant.id=DEFAULT_TENANT --device.id=4711 --spring.profiles.active=receiver
不起作用。据我了解,这意味着网络存在问题。验证我可以访问所有必要的端口是否成功:
curl -sIX GET http://hono.eclipseprojects.io:28080/v1/tenants/DEFAULT_TENANT
HTTP/1.1 200 OK
etag: ed4151c3-e694-460e-a21d-c68d5e40411e
content-type: application/json; charset=utf-8
content-length: 16
而且我能够ping地址(hono.eclipseprojects.io)并访问端口(4711)。
- 我正在研究覆盆子 3B+
- 我使用的JDK版本:
java -version
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9+11-post-Raspbian-1deb10u1)
OpenJDK Server VM (build 11.0.9+11-post-Raspbian-1deb10u1, mixed mode)
我非常感谢任何建议或想法。
提前非常感谢!