使用WSO2 DAS配置AWS IOT时出错

时间:2017-09-26 08:18:37

标签: java wso2 mqtt aws-iot wso2-das

我尝试使用AWS IOT服务器配置WSO2 DAS mqtt接收器,如下所述。

<?xml version="1.0" encoding="UTF-8"?>
<eventReceiver name="mqttIot" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
<from eventAdapterType="mqtt">
    <property name="topic">/device-data</property>
    <property name="cleanSession">true</property>
    <property name="url">tcp://<url>:8883</property>
</from>
<mapping customMapping="disable" type="text"/>
<to streamName="sonsor.in.event.data.stream" version="1.0.0"/>
</eventReceiver>

还尝试更改端口8883和443.但得到相同的错误。

 ERROR {org.wso2.carbon.event.input.adapter.mqtt.internal.util.MQTTAdapterListener} -  MQTT Exception occurred when starting listener
 Connection lost (32109) - java.io.EOFException
    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:138)
    at java.lang.Thread.run(Thread.java:745)
 Caused by: java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:267)
    at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:56)
    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:100)
    ... 1 more

这适用于WSO2 ESB上的入站端点。我需要在DAS方面进行任何其他配置吗?

0 个答案:

没有答案