cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Can not run sample Thingworx java sdk code

Level 6

Can not run sample Thingworx java sdk code

I am trying to run code provide from https://developer.thingworx.com/en/resources/guides/thingworx-java-sdk-tutorial

 

put threads are executing repeatedly, no error occures.

I have not provided  Thingworx username and password in my code. I had only set appKey , which i created from Thingworx composer Application key.

 

 

After executing i get Logs as shown in file.

2 REPLIES

Re: Can not run sample Thingworx java sdk code

Have you checked the connection from the composer/platform side? It seems like it's connecting with no issues. You may look in your application log too to see if there is anything unusual in there (from the monitoring tab in your Composer).

Highlighted

Re: Can not run sample Thingworx java sdk code

Thank you  posipova,

 

Yes I looked into the application log , I found their a warning as:

 

Server WebSocket closed unexpectedly, unregistering from Server Endpoint [ws session id: 8, endpoint id: 9, endpoint name: null] An existing connection was forcibly closed by the remote host

 

******************Also, 

Do I need to provide my Thingworx username and  Password in code or some other file for authentication?