Connector Exception 4: Connector cannot connect to the ThingWorx Platform on startup
If the Connector is stopped and then restarted and, in the interim, ThingWorx Platform has also stopped, this exception is generated for the Connector. Messages about WebSocket connection errors with ThingWorx platform appear. Refer to Observation 12: Connector websocket connection errors with ThingWorx Platform.
Here is a scenario that would result in this exception:
1. Stop the Connector.
2. Stop ThingWorx Platform.
3. Restart the Connector.
In this scenario, the error listed below is logged for each WebSocket connection (by default, five connections are attempted):
...ERROR c.t.s.i.t.netty.NettyBytesChannel -
Error while establishing websocket connection
on channel com.Thingworx.sdk.impl.
transport.netty.NettyBytesChannel$2@783bf0b.
java.net.ConnectException: Connection refused:

...
Was this helpful?