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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

ThingWorx training, simulator batch files have error: WebSocket error: Invalid Protocol Version [0],

domderose
7-Bedrock

ThingWorx training, simulator batch files have error: WebSocket error: Invalid Protocol Version [0],

Hello, 

 

When running any of the simulator batch files included with the ThingWorx 8 training modules they all produce a lot of DEBUG results and a single Error. The Error is:

 

14:19:42.191 [NettyClient-NIO-1] ERROR c.t.c.c.c.n.ThingworxClientConnectionHand
ler - WebSocket error: Invalid Protocol Version [0], closing connection!

 

The TrainingConfig.Json file contains the following:

{
"ServerLocation": "dad-ptcpg",
"Port": 8080,
"AppKey": "1c6d618d-61a7-4b29-a565-9c8ac01d6208",
"Security": false,
"RemoteRepo": "/ThingworxRemoteRepository"
}

 

ServerLocation has been confirmed accurate, using 127.0.0.1 produces the same result.

Port 8080 is accurate

AppKey has been confirmed to exist in ThingWorx under security

and the RemoteRepo directory exists.

 

Running the files from C:\MicroServer_Java directoy

 

Not sure why it's throwing this error. A search shows similar errors but not the exact one being encountered.

2 REPLIES 2

Hi!

Can you check if AppKey is still valid?

You will find expiration date parameter in ThingWorx under your specific AppKey entity:

 

 

Regards,

Adam

Hi @domderose.

 

I tested with the MicroServer_Java simulators and had no issues so we need to look at your environment as the possible cause of the problem.

 

Are you running the simulators from the same machine that ThingWorx is installed on?  What o/s are you running on?  Do you possibly have a 32-bit version of java installed that it's trying to use?  Is the JAVA_HOME environment variable pointing to a 32-bit version?

 

Regards.

 

--Sharon

Announcements


Top Tags