用MQTTfx连接阿里云物联网平台,怎么一直MQTTException-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

用MQTTfx连接阿里云物联网平台,怎么一直MQTTException

2020-05-23 21:06:31 2051 0

我按官网格式配的设置,怎么就一直出MQTTException。 image.png 后面的用户名和密码也设置好了

2019-07-17 15:01:21,271  INFO --- BrokerConnectorController      : onConnect
2019-07-17 15:01:21,272  INFO --- ScriptsController              : Clear console.
2019-07-17 15:01:21,276  INFO --- MqttFX ClientModel             : MqttClient with ID 5CD6367ZYS|securemode=3,signmethod=hmacsha1,timestamp=10| assigned.
2019-07-17 15:01:21,294 ERROR --- MqttFX ClientModel             : Error when connecting
org.eclipse.paho.client.mqttv3.MqttException: MqttException
    at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]
    at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:715) ~[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.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.checkHost(Unknown Source) ~[?:?]
    at java.net.InetSocketAddress.<init>(Unknown Source) ~[?:?]
    at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:76) ~[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:?]
    ... 7 more
2019-07-17 15:01:21,295 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: MqttException
    at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38) ~[org.eclipse.paho.client.mqttv3-1.2.0.jar:?]
    at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:715) ~[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.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.checkHost(Unknown Source) ~[?:?]
    at java.net.InetSocketAddress.<init>(Unknown Source) ~[?:?]
    at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:76) ~[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:?]
    ... 7 more
2019-07-17 15:01:21,301  INFO --- ScriptsController              : Clear console.
2019-07-17 15:01:21,302 ERROR --- BrokerConnectService           : MqttException

遇到了同样的问题,在CSDN看到了,希望阿里云团队能够给出正确、标准的答案~请查看

取消 提交回答
全部回答(0)
相关问答

0

回答

linux网关开发板如何连接阿里云物联网平台的M

2020-05-23 21:05:43 423浏览量 回答数 0

1

回答

阿里云-生活物联网平台

2020-04-07 18:59:51 1254浏览量 回答数 1

2

回答

阿里云物联网平台怎么用IP地址连接

2019-09-12 17:57:28 3294浏览量 回答数 2

1

回答

阿里云物联网平台与手机app数据传输

2019-09-05 09:37:36 3208浏览量 回答数 1

1

回答

arm开发板如何连接阿里云物联网平台mqtt?

2019-06-24 12:43:21 4010浏览量 回答数 1

3

回答

阿里云注册商标如何在app操作

2019-04-06 09:41:16 4324浏览量 回答数 3

1

回答

MQTT.fx如何用SSL连接阿里云物联网平台

2019-03-07 15:56:25 9094浏览量 回答数 1

0

回答

MX记录在阿里云显示正常,邮箱提示无MX记录

2018-09-19 14:22:46 726浏览量 回答数 0

1

回答

阿里云物联网平台

2018-08-20 16:46:16 539浏览量 回答数 1

1

回答

企业子账户如何登录阿里云app?

2016-09-30 14:36:38 2491浏览量 回答数 1
+关注
刘刚_
努力努力再努力
5
文章
429
问答
问答排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载