Error initializing MQTT connection RRS feed

  • Question

  • Hi,

    i try to connect from iot gateway to azure iothub and i receive this error "Error initializing MQTT connection".

    My gateway runs OSGi framework with these specific information

    Java virtual machine: Java HotSpot(TM) 64-Bit Server VM version 25.92-b14

    Java(TM) SE Runtime Environment 1.8.0_92-b14

    OSGi framework Eclipse 1.7.0


    Exception in thread "main" java.io.IOException: Error initializing MQTT connection:MqttException
            at com.microsoft.azure.iothub.transport.mqtt.MqttIotHubConnection.open(MqttIotHubConnection.java:139)
            at com.microsoft.azure.iothub.transport.mqtt.MqttTransport.open(MqttTransport.java:84)
            at com.microsoft.azure.iothub.DeviceClient.open(DeviceClient.java:175)
            at testiotazure.TestIoTAzure.main(TestIoTAzure.java:26)

    Any ideas? 

    Wednesday, January 25, 2017 3:48 PM