azure - ThingWorx Azure IOT 集线器连接器未启动

标签 azure azure-iot-hub thingworx

我正在使用 ThingWorx Azure IOT Hub 连接器将 thingworx 连接到 azure Hub。

我正在 Linux 计算机上配置 ThingWorx Azure IOT Hub 连接器。

我的远程thingworx服务器在azure IOT Connector的conf文件中的配置如下:

 transport.websockets {
    // ThingWorx platform application key
    app-key = "app-key"

    // One or more platforms can be specified here, comma separated
    platforms = "remote thingworx url here"
}

健康检查也如下:

health-check{
port =9009
}

现在,当我从终端运行 azure-iot 文件时,终端上没有任何输出。

当我尝试向浏览器中的 9009 端口发送请求时,它不起作用。

我收到的错误日志是

Error injecting constructor, java.lang.RuntimeException: Unable to bootstrap 
required extensions; see log for details
at com.thingworx.connectionserver.PlatformExtensionBootstrapImpl.<init>
(PlatformExtensionBootstrapImpl.java:51)
at 
com.thingworx.connectionserver.PlatformExtensionBootstrapImpl.class
(PlatformExtensionBootstrapImpl.java:40)
while locating com.thingworx.connectionserver.PlatformExtensionBootstrapImpl
at com.thingworx.connectionserver.ConnectionServerModule.configure
(ConnectionServerModule.java:47)
while locating com.thingworx.connectionserver.PlatformExtensionBootstrap
for the 4th parameter of com.thingworx.connectionserver.CXThingImpl.<init>(CXThingImpl.java:77)
at com.thingworx.connectionserver.CXThingImpl.class(CXThingImpl.java:47)
while locating com.thingworx.connectionserver.CXThingImpl
at 
com.thingworx.connectionserver.ConnectionServerModule.configure
(ConnectionServerModule.java:43)
 while locating com.thingworx.connectionserver.CXThing
Caused by: java.lang.RuntimeException: Unable to bootstrap required 
extensions; see log for details
    at com.thingworx.connectionserver.PlatformExtensionBootstrapImpl.abort
  (PlatformExtensionBootstrapImpl.java:285)
     at com.thingworx.connectionserver.PlatformExtensionBootstrapImpl.queryInstalledExtensions(PlatformExtensionBootstrapImpl.java:190)
    at com.thingworx.connectionserver.PlatformExtensionBootstrapImpl.<init>(PlatformExtensionBootstrapImpl.java:60)
    at com.thingworx.connectionserver.PlatformExtensionBootstrapImpl$$FastClassByGuice$$be072900.newInstance(<generated>)
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get
  (InternalFactoryToProviderAdapter.java:41)
    at 
 com.google.inject.internal.SingleParameterInjector.inject
 (SingleParameterInjector.java:38)

最佳答案

终于我能够解决这个问题了。

Thingworx 的应用程序 key 不正确。

我更正了 key ,此错误就不再出现。

关于azure - ThingWorx Azure IOT 集线器连接器未启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48089761/

相关文章:

java - 我正在尝试使用提供的示例 "SendEventX509.java"发送消息,但我遇到了问题。下面提到的堆栈跟踪

javascript - 使用 jQuery、Ajax 或 AngularJS 从 Azure/oauth2/token 端点获取 access_token 时出现跨域问题

azure - 插入新行,继续现有行集 row_number 计数

ssl - Azure IoT 中心 MQTT 故障

Postgresql:最大连接数:设置应用程序名称吃连接

frontend - ThingWorx 水平可扩展性

android - 如何在 Azure Devops 管道中运行 Espresso UI 测试

azure - 在 Azure 数据工厂复制事件中使用 'Additional columns' 时,如果该列已存在于源中,它是否会在接收器端复制该列?

azure - 如何捕获 Azure 设备 SDK 中引发的错误?