Article - CS271819

ThingWorx Analytics Server things do not get created in ThingWorx Core after installation in ThingWorx Analytics Server

Modified: 04-Feb-2020   


Applies To

  • ThingWorx Platform 8.1 to 8.5
  • ThingWorx Analytics 8.1 to 8.5

Description

  • ThingWorx Analytics Server things do not get created in ThingWorx Core after installation
  • Following error can be seen in edge microservice:
ERROR c.t.a.e.a.AnalyticsEdgeVerticle - Failed during startup
java.lang.NullPointerException: null
    at com.thingworx.analytics.ccc.platform.beans.ThingModel$Builder.<init>(ThingModel.java:170)
    at com.thingworx.analytics.ccc.platform.services.ThingService.getThing(ThingService.java:74)
    at com.thingworx.analytics.edge.application.AnalyticsGateway.safeGetThing(AnalyticsGateway.java:108)
    at com.thingworx.analytics.edge.application.AnalyticsGateway.safeCreateThing(AnalyticsGateway.java:90)
    at com.thingworx.analytics.edge.application.AnalyticsGateway.registerToFoundation(AnalyticsGateway.java:68)
    at com.thingworx.analytics.edge.application.AnalyticsEdgeVerticle.start(AnalyticsEdgeVerticle.java:75)
    at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$163(DeploymentManager.java:429)
    at io.vertx.core.impl.ContextImpl.lambda$wrapTask$18(ContextImpl.java:335)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    at java.lang.Thread.run(Thread.java:745)

 
  • ThingWorx ApplicationLog.log shows licensing error such as
License Server could not process request
 [L: ERROR] [O: c.t.s.s.l.LicenseFetcher] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] License Server could not process request
 [L: ERROR] [O: c.t.s.s.l.LicenseFetcher] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] License Server could not process request
 [L: ERROR] [O: c.t.s.s.l.LicenseFetcher] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] License Server could not process request
 [L: ERROR] [O: c.t.s.s.l.LicensingStateMachine] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Unable to fetch license file with device id XXXX
 [L: ERROR] [O: c.t.s.s.l.LicensingStateMachine] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Unable to connect to the PTC license server.  Please make sure the LicensingConnectionSettings settings in the platform-settings.json in the ThingworxPlatform directory are correct. If your server is not connected to the internet please use the request file licenseRequestFile.txt created in the ThinworxPlatform directory to do a manual install of the license
 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Subsystem LicensingSubsyst

 
  • Things cannot be created in ThingWorx Composer
    • In release 8.1 with symptoms described at CS271552
  • In release 8.5, twas-twx-adapter.log shows
 ERROR c.t.a.e.a.AnalyticsEdgeVerticle - Failed during startup
com.thingworx.analytics.css.platform.http.BadResponseException: HTTP [403] : License has not been installed
    at com.thingworx.analytics.css.platform.http.RestService.httpSubmitAsJson(RestService.java:133)
    at com.thingworx.analytics.css.platform.http.RestService.httpPostAsJson(RestService.java:50)
    at com.thingworx.analytics.css.platform.services.ThingService.createThing(ThingService.java:90)
    at com.thingworx.analytics.edge.application.AnalyticsGateway.safeCreateThing(AnalyticsGateway.java:147)
    at com.thingworx.analytics.edge.application.AnalyticsGateway.registerToFoundation(AnalyticsGateway.java:111)
    at com.thingworx.analytics.edge.application.AnalyticsEdgeVerticle.start(AnalyticsEdgeVerticle.java:96)
    at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$10(DeploymentManager.java:481)

 

 
 
This is a printer-friendly version of Article 271819 and may be out of date. For the latest version click CS271819