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
The azureiothub connector was working corectlty, but now has stopped working!!!!
It seems not to be able to open WS in thingworx...
Here is the log of the cx-server:
18:51:55.255 [Thread-10] ERROR c.t.s.i.t.netty.NettyBytesChannel - Error while establishing websocket connection on channel com.thingworx.sdk.impl.transport.netty.NettyBytesChannel$2@795a2ee4.
java.util.concurrent.TimeoutException: Timed out waiting for response
at com.thingworx.sdk.impl.concurrent.DeadlineFuture.notifyOfTimeout(DeadlineFuture.java:81) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.notifyOfTimeout(DeadlineManager.java:132) [tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.processDeadlines(DeadlineManager.java:78) [tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.run(DeadlineManager.java:47) [tw-sdk-core-1.2.0.5.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_92]
18:51:55.260 [Thread-10] ERROR c.t.f.i.AbstractManyPlatformWebSocketFabric - Failure while connecting to platform: endpoint=ws://localhost:8080/Thingworx/WS
java.util.concurrent.TimeoutException: Timed out waiting for response
at com.thingworx.sdk.impl.concurrent.DeadlineFuture.notifyOfTimeout(DeadlineFuture.java:81) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.notifyOfTimeout(DeadlineManager.java:132) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.processDeadlines(DeadlineManager.java:78) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.run(DeadlineManager.java:47) ~[tw-sdk-core-1.2.0.5.jar:na]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_92]
18:51:55.361 [Thread-10] ERROR c.t.s.i.t.netty.NettyBytesChannel - Error while establishing websocket connection on channel com.thingworx.sdk.impl.transport.netty.NettyBytesChannel$2@156f3d21.
java.util.concurrent.TimeoutException: Timed out waiting for response
at com.thingworx.sdk.impl.concurrent.DeadlineFuture.notifyOfTimeout(DeadlineFuture.java:81) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.notifyOfTimeout(DeadlineManager.java:132) [tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.processDeadlines(DeadlineManager.java:78) [tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.run(DeadlineManager.java:47) [tw-sdk-core-1.2.0.5.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_92]
I tried to:
-Reboot
-Stop the firewall
but nothing..
Can you help me Please????
Can you make a connection to http://localhost:8080/Thingworx/Composer?
Yes!
Well, we know your local instance is up, then. We're getting a timeout, so maybe the URI in the config file has a slight error. I feel like we would get an authentication error if the API key had been wiped out by an upgrade (or something like that), but it's worth making sure the appKey you're using is still in your ThingWorx instance, too. We should look at the URI configured in your azure-iot.conf file. Mine's in the /conf dir of my Azure IoT Connector app. Here's the ThingWorx section:
transport.websockets {
// ThingWorx platform application key
app-key = "xxxxxxxx-005e-49ed-8d7a-xxaxxxxxxxa"
// One or more platforms can be specified here, comma separated
platforms = "wss://twxazuredemo.cloudapp.net:443/Thingworx/WS"
}
Your error trace makes me think you're not using ssl, so your platform's entry should probably look more like ws://localhost:8080/Thingworx/WS .
Let's check all that, and continue, if we don't find an issue.
My conf is correct and worked correctly 2 day ago....
transport.websockets {
// ThingWorx platform application key
app-key = "ec9eca41-2623-4549-9698-d9463582b759"
// One or more platforms can be specified here, comma separated
platforms = "ws://localhost:8080/Thingworx/WS"
}
}
I don't know, but Thingworx is no longer able to open a WS, beacuse i tried with simply connection server and with iot gateway by KepserverEX but nothing!!
I think that probably the problem is in azure cloud where my Virtual Machine with thingworx having the issue that I mentioned.
I tried to install another Thingworx in local with the same configuration and works perfectly!
I don't know where can I find something about was changed..
Any suggestion?
Thanks
Maybe the problem is caused by this:
I have the same error yet:
15:35:42.335 [Thread-10] ERROR c.t.f.i.AbstractManyPlatformWebSocketFabric - Failure while connecting to platform: endpoint=ws://localhost:8080/Thingworx/WS
java.util.concurrent.TimeoutException: Timed out waiting for response
at com.thingworx.sdk.impl.concurrent.DeadlineFuture.notifyOfTimeout(DeadlineFuture.java:81) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.notifyOfTimeout(DeadlineManager.java:132) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.processDeadlines(DeadlineManager.java:78) ~[tw-sdk-core-1.2.0.5.jar:na]
at com.thingworx.sdk.impl.concurrent.DeadlineManager.run(DeadlineManager.java:47) ~[tw-sdk-core-1.2.0.5.jar:na]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_92]
Everything looks OK. Given the sudden appearance of this problem, perhaps some configuration item for AWS websocket connections has changed. I think, in this case, Support might lead you to the fastest resolution. If there's an issue that will affect other clients and partners, it will be a help to them, too. Sorry I couldn't solve it here.
I put in trace mode the comunication-Log and i found this:
2016-12-07 09:05:13.956+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 0]
2016-12-07 09:05:13.956+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-1] (CONNECTION) Server WebSocket OPEN [session id: 3]
2016-12-07 09:05:13.956+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-10] (CONNECTION) Server WebSocket OPEN [session id: 4]
2016-12-07 09:05:13.956+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] (CONNECTION) Server WebSocket OPEN [session id: 2]
2016-12-07 09:05:13.956+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-4] (CONNECTION) Server WebSocket OPEN [session id: 1]
2016-12-07 09:05:49.492+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] (CONNECTION) Server WebSocket CLOSED [session id: 0, reason: CloseReason: code [1006], reason [An existing connection was forcibly closed by the remote host]]
2016-12-07 09:05:49.492+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket CLOSED [session id: 3, reason: CloseReason: code [1006], reason [An existing connection was forcibly closed by the remote host]]
2016-12-07 09:05:49.492+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-9] (CONNECTION) Server WebSocket CLOSED [session id: 2, reason: CloseReason: code [1006], reason [An existing connection was forcibly closed by the remote host]]
2016-12-07 09:05:49.492+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-10] (CONNECTION) Server WebSocket CLOSED [session id: 4, reason: CloseReason: code [1006], reason [An existing connection was forcibly closed by the remote host]]
2016-12-07 09:05:49.508+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-2] (CONNECTION) Server WebSocket CLOSED [session id: 1, reason: CloseReason: code [1006], reason [An existing connection was forcibly closed by the remote host]]
2016-12-07 09:08:17.212+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 5]
2016-12-07 09:08:17.212+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 6]
2016-12-07 09:08:17.227+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 7]
2016-12-07 09:08:17.227+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 8]
2016-12-07 09:08:17.227+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-10] (CONNECTION) Server WebSocket OPEN [session id: 9]
2016-12-07 10:47:25.358+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket OPEN [session id: a]
2016-12-07 10:50:20.829+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-12] (CONNECTION) Server WebSocket OPEN [session id: b]
2016-12-07 10:51:38.034+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-9] (CONNECTION) Server WebSocket CLOSED [session id: b, reason: CloseReason: code [1006], reason [null]]
2016-12-07 11:06:06.340+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: WebSocket background processing] (CONNECTION) Server WebSocket CLOSED [session id: a, reason: CloseReason: code [1006], reason [The WebSocket session timeout expired]]
2016-12-07 11:43:27.063+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-12] (CONNECTION) Server WebSocket OPEN [session id: c]
2016-12-07 11:44:33.532+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-12] (CONNECTION) Server WebSocket CLOSED [session id: c, reason: CloseReason: code [1006], reason [null]]
2016-12-07 11:55:52.122+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-12] (CONNECTION) Server WebSocket OPEN [session id: d]
2016-12-07 11:55:52.356+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-6] (CONNECTION) Server WebSocket CLOSED [session id: d, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 11:55:57.778+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket OPEN [session id: e]
2016-12-07 12:00:01.601+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: WebSocket background processing] (CONNECTION) Server WebSocket CLOSED [session id: e, reason: CloseReason: code [1006], reason [The WebSocket session timeout expired]]
2016-12-07 12:13:16.627+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-9] (CONNECTION) Server WebSocket OPEN [session id: f]
2016-12-07 12:16:34.910+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-11] (CONNECTION) Server WebSocket CLOSED [session id: f, reason: CloseReason: code [1006], reason [null]]
2016-12-07 12:23:01.347+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] (CONNECTION) Server WebSocket OPEN [session id: 10]
2016-12-07 12:23:28.290+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-1] (CONNECTION) Server WebSocket CLOSED [session id: 10, reason: CloseReason: code [1006], reason [null]]
2016-12-07 14:13:43.097+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-2] (CONNECTION) Server WebSocket OPEN [session id: 11]
2016-12-07 14:13:43.331+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket CLOSED [session id: 11, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 14:13:48.929+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-2] (CONNECTION) Server WebSocket OPEN [session id: 12]
2016-12-07 14:16:43.156+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-11] (CONNECTION) Server WebSocket CLOSED [session id: 12, reason: CloseReason: code [1006], reason [null]]
2016-12-07 15:05:23.728+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] (CONNECTION) Server WebSocket OPEN [session id: 13]
2016-12-07 15:06:40.108+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-4] (CONNECTION) Server WebSocket CLOSED [session id: 13, reason: CloseReason: code [1006], reason [null]]
2016-12-07 15:09:36.000+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 14]
2016-12-07 15:09:56.189+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: WebSocket background processing] (CONNECTION) Server WebSocket CLOSED [session id: 14, reason: CloseReason: code [1006], reason [The WebSocket session timeout expired]]
2016-12-07 15:26:29.612+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-6] (CONNECTION) Server WebSocket OPEN [session id: 15]
2016-12-07 15:26:29.847+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-5] (CONNECTION) Server WebSocket CLOSED [session id: 15, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:26:35.400+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-5] (CONNECTION) Server WebSocket OPEN [session id: 16]
2016-12-07 15:26:35.557+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-2] (CONNECTION) Server WebSocket CLOSED [session id: 16, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:26:40.914+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 17]
2016-12-07 15:26:41.018+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket CLOSED [session id: 17, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:26:46.386+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-5] (CONNECTION) Server WebSocket OPEN [session id: 18]
2016-12-07 15:26:46.500+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket CLOSED [session id: 18, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:26:52.335+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 19]
2016-12-07 15:26:52.446+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket CLOSED [session id: 19, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:26:57.746+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-4] (CONNECTION) Server WebSocket OPEN [session id: 1a]
2016-12-07 15:26:57.862+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-11] (CONNECTION) Server WebSocket CLOSED [session id: 1a, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:03.360+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] (CONNECTION) Server WebSocket OPEN [session id: 1b]
2016-12-07 15:27:03.506+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-6] (CONNECTION) Server WebSocket CLOSED [session id: 1b, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:08.825+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-4] (CONNECTION) Server WebSocket OPEN [session id: 1c]
2016-12-07 15:27:08.934+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-12] (CONNECTION) Server WebSocket CLOSED [session id: 1c, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:14.264+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] (CONNECTION) Server WebSocket OPEN [session id: 1d]
2016-12-07 15:27:14.366+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-4] (CONNECTION) Server WebSocket CLOSED [session id: 1d, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:19.621+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-11] (CONNECTION) Server WebSocket OPEN [session id: 1e]
2016-12-07 15:27:19.731+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-6] (CONNECTION) Server WebSocket CLOSED [session id: 1e, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:25.306+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-4] (CONNECTION) Server WebSocket OPEN [session id: 1f]
2016-12-07 15:27:25.431+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-11] (CONNECTION) Server WebSocket CLOSED [session id: 1f, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:30.684+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-2] (CONNECTION) Server WebSocket OPEN [session id: 20]
2016-12-07 15:27:30.809+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-1] (CONNECTION) Server WebSocket CLOSED [session id: 20, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:36.289+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-10] (CONNECTION) Server WebSocket OPEN [session id: 21]
2016-12-07 15:27:36.414+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] (CONNECTION) Server WebSocket CLOSED [session id: 21, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:41.648+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket OPEN [session id: 22]
2016-12-07 15:27:41.757+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-9] (CONNECTION) Server WebSocket CLOSED [session id: 22, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:47.304+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-5] (CONNECTION) Server WebSocket OPEN [session id: 23]
2016-12-07 15:27:47.413+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket CLOSED [session id: 23, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:52.664+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-12] (CONNECTION) Server WebSocket OPEN [session id: 24]
2016-12-07 15:27:52.773+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-5] (CONNECTION) Server WebSocket CLOSED [session id: 24, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:27:58.278+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-11] (CONNECTION) Server WebSocket OPEN [session id: 25]
2016-12-07 15:27:58.388+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-6] (CONNECTION) Server WebSocket CLOSED [session id: 25, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:28:51.263+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket OPEN [session id: 26]
2016-12-07 15:28:51.494+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-1] (CONNECTION) Server WebSocket CLOSED [session id: 26, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:28:57.910+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-7] (CONNECTION) Server WebSocket OPEN [session id: 27]
2016-12-07 15:28:58.107+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-2] (CONNECTION) Server WebSocket CLOSED [session id: 27, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:29:03.757+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-3] (CONNECTION) Server WebSocket OPEN [session id: 28]
2016-12-07 15:29:03.874+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-2] (CONNECTION) Server WebSocket CLOSED [session id: 28, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 15:29:10.085+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-11] (CONNECTION) Server WebSocket OPEN [session id: 29]
2016-12-07 15:29:10.213+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-6] (CONNECTION) Server WebSocket CLOSED [session id: 29, reason: CloseReason: code [1011], reason [Error [authenticating connection], Server websocket will be closed.]]
2016-12-07 16:04:27.588+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: localhost-startStop-2] (CONNECTION) Server WebSocket CLOSED [session id: 6, reason: CloseReason: code [1001], reason [The web application is stopping]]
2016-12-07 16:04:27.588+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: localhost-startStop-2] (CONNECTION) Server WebSocket CLOSED [session id: 5, reason: CloseReason: code [1001], reason [The web application is stopping]]
2016-12-07 16:04:27.588+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: localhost-startStop-2] (CONNECTION) Server WebSocket CLOSED [session id: 9, reason: CloseReason: code [1001], reason [The web application is stopping]]
2016-12-07 16:04:27.588+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: localhost-startStop-2] (CONNECTION) Server WebSocket CLOSED [session id: 7, reason: CloseReason: code [1001], reason [The web application is stopping]]
2016-12-07 16:04:27.603+0100 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: localhost-startStop-2] (CONNECTION) Server WebSocket CLOSED [session id: 8, reason: CloseReason: code [1001], reason [The web application is stopping]]
any suggestion?
Hi,
I am running into the same error. can you please tell me where to look for the URL for the ThingWorx Platform endpoint?
I have given "ws://localhost:8080/Thingworx/WS" as the platform URL.
Please provide me a solution to the problem.
Thank you...
Hi Dipika,
the URL is rigth.
I suggest you to Check one parmeter in server.xml in tomcat->conf->server.xml if you have this:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
if unpackWARs is false, you have to stop Tomcat service, change false in true, then re-start Tomcat service, and try the Connector.
This solved my problem.
Bye
Hi Maurizio,
Thank you for your response.
I setup SSL / HTTPS on Tomcat with Self-Signed Certificate. After that while running the azure-iot.bat, it is not giving any error but as mentioned in the documentation, the below lines are not showing up.
My command prompt looks like this:
Can you please tell me what's the problem?
Thank you.
Hi,
Look in the documentation:
bye