アーティクル - CS271012
ThingWorx Analytics アプリケーション キーが間違っているため、ThingWorx でモノが作成されない
修正日: 07-Feb-2024
適用対象
- ThingWorx Analytics 8.1 to 9.5
説明
- <prefix>-AnalyticsServer-DataThing などの予期されるマイクロ サービス モノがインストール後に作成されない
- ThingWorx Analytics サーバーにアクセスできません
- ThingWorx Analytics サーバーを再起動できません
- ThingWorx Analytics Builder 経由でデータをアップロードできない
- シナリオとバージョンに応じて、次のようなさまざまなエラーが表示される場合があります。
- ThingWorx Analytics Builder で次のエラーが発生しました
An Analytics Server is not configured. Navigate to the Settings page and configure a ThingWorx Analytics Server adapter
- twas-twx-adapter.logファイルのレポート
com.thingworx.analytics.css.platform.http.BadResponseException: HTTP [401] : at com.thingworx.analytics.css.platform.http.RestService.httpSubmitAsJson(RestService.java:133) at com.thingworx.analytics.css.platform.http.RestService.httpGetAsJson(RestService.java:36) at com.thingworx.analytics.css.platform.services.ThingService.getThing(ThingService.java:100) at com.thingworx.analytics.edge.application.AnalyticsGateway.safeGetThing(AnalyticsGateway.java:153) at com.thingworx.analytics.edge.application.AnalyticsGateway.safeCreateThing(AnalyticsGateway.java:135) at com.thingworx.analytics.edge.application.AnalyticsGateway.registerToFoundation(AnalyticsGateway.java:111) at com.thingworx.analytics.edge.application.AnalyticsEdgeVerticle.start(AnalyticsEdgeVerticle.java:96)
- twas-twx-adapter.logに他のエラーが記録されている可能性があります
Error registering and binding to the platform HTTP [404] : Thing Template [PredictionMicroserver] does not exist
ERROR c.t.c.c.e.ClientCommunicationEndpoint - Refilling connections on [endpoint 0, uri: ws://XXXX/Thingworx/WS] failed : Connection authentication/registration FAILED [code: STATUS_UNAUTHORIZED, reason: Error [context: authenticating connection][cause: Application key 'TW.AnalysisServices.ApplicationUserKey' expired!]]
- Tomcat アクセス ログ レポート
"GET /Thingworx/Things/<AnalyticsServer Thing Name> HTTP/1.1" 401 –
- 考えられる関連エラー:
com.thingworx.analytics.ccc.platform.http.BadResponseException: HTTP [401] Unauthorized: Not authorized for Read
com.thingworx.analytics.ccc.platform.http.BadResponseException: HTTP [401] Unauthorized: Not authorized for Create
c.t.a.e.a.AnalyticsEdgeVerticle - Failed during startup
com.thingworx.analytics.ccc.platform.http.BadResponseException: HTTP [404] : Entity Not Found : [EntityServices]
at com.thingworx.analytics.ccc.platform.http.RestService.httpSubmitAsJson(RestService.java:133)
at com.thingworx.analytics.ccc.platform.http.RestService.httpPostAsJson(RestService.java:50)
at com.thingworx.analytics.ccc.platform.services.ThingService.createThing(ThingService.java:63)
at com.thingworx.analytics.edge.application.AnalyticsGateway.safeCreateThing(AnalyticsGateway.java:117)
at com.thingworx.analytics.edge.application.AnalyticsGateway.registerToFoundati
最新バージョンはこちらを参照ください CS271012