mqtt连接失败?

  • 回答 (0)
  • 关注 (0)
  • 查看 (649)

2018-07-10 17:20:31,484 INFO --- BrokerConnectorController : onConnect

2018-07-10 17:20:31,528 INFO --- MqttFX ClientModel : MqttClient with ID demo1demo1 assigned.

2018-07-10 17:21:13,838 ERROR --- MqttFX ClientModel : Error when connecting

org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to serve

at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:94) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

at org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule.start(SSLNetworkModule.java:103) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:701) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]

at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) ~[?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]

at java.lang.Thread.run(Unknown Source) [?:?]

Caused by: java.net.ConnectException: Connection timed out: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[?:?]

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[?:?]

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[?:?]

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[?:?]

at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[?:?]

at java.net.PlainSocketImpl.connect(Unknown Source) ~[?:?]

at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:?]

at java.net.Socket.connect(Unknown Source) ~[?:?]

at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:80) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

... 9 more

2018-07-10 17:21:13,842 ERROR --- MqttFX ClientModel : Please verify your Settings (e.g. Broker Address, Broker Port & Client ID) and the user credentials!

org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to serve

at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:94) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

at org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule.start(SSLNetworkModule.java:103) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:701) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]

at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) ~[?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]

at java.lang.Thread.run(Unknown Source) [?:?]

Caused by: java.net.ConnectException: Connection timed out: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[?:?]

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[?:?]

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[?:?]

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[?:?]

at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[?:?]

at java.net.PlainSocketImpl.connect(Unknown Source) ~[?:?]

at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:?]

at java.net.Socket.connect(Unknown Source) ~[?:?]

at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:80) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]

... 9 more

2018-07-10 17:21:13,853 INFO --- ScriptsController : Clear console.

2018-07-10 17:21:13,853 ERROR --- BrokerConnectService : Unable to connect to serve

用户1252851用户1252851提问于

扫码关注云+社区

领取腾讯云代金券