Skip to main content
1-Visitor
March 30, 2020
Question

connecting Azure IoT Hub to Thingworx through Thingworx Azure IoT Hub Connector

  • March 30, 2020
  • 8 replies
  • 2770 views

Hi,

   I am trying to connect  azure Iot hub to thingworx platform using this link:

   https://developer.thingworx.com/en/resources/guides/azure-iot-hub-connector-quickstart

  1. This tutorial is given with java code. I want to use .net to start connection server with thingworx platform.               How do I do this? 

   2. Also, I tried to start connection server but getting following error:

 

       Caused by: com.typesafe.config.ConfigException$IO: C:\Thingworx-Azure-IoT-Hub-Connector-2.0.0.141\connector\conf\azure-iot.conf-Dlogback.configurationFile=C:\Thingworx-Azure-IoT-Hub-Connector-2.0.0.141\connector\conf\logback.xml: java.io.FileNotFoundException: C:\Thingworx-Azure-IoT-Hub-Connector-2.0.0.141\connector\conf\azure-iot.conf-Dlogback.configurationFile=C:\Thingworx-Azure-IoT-Hub-Connector-2.0.0.141\connector\conf\logback.xml (The filename, directory name, or volume label syntax is incorrect)

 

 Please provide your guidance.

8 replies

18-Opal
March 30, 2020

Hello @Mayur_Phase,

 

For your error -- just add a space between "conf" and "-D", so that it reads like that:

 

...connector\conf\azure-iot.conf -Dlogback.configurationFile...

 

/ Constantine

1-Visitor
March 30, 2020
Thank you for your reply. I made a change as you mentioned.
Now I am getting following error log:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
com.google.inject.internal.cglib.core.$ReflectUtils$1
(file:/C:/Thingworx-Azure-IoT-Hub-Connector-2.0.0.141/connector/lib/guice-4.1.0.jar)
to method
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release

Please provide the guidance.
18-Opal
March 30, 2020

There are no errors in your example, only warnings. You can probably ignore those, as soon as it works.

 

/ Constantine