You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run integration tests on my realtime resources using Nettosphere and AHC.
I face a strange server-side error when sending data from client to server (largely based on the Nettosphere's WebSocket unit test NettyAtmosphereTest#suspendWebSocketTest()).
While executing, this outputs the following message in the console:
...
17:15:33.250 [pool-9-thread-1] DEBUG o.a.nettosphere.NettyWebSocket - The WebSocket handshake succeeded but the dispatched URI failed Bad Request:400. The WebSocket connection is still open and client can continue sending messages.
17:15:33.250 [pool-9-thread-1] WARN o.a.w.protocol.SimpleHttpProtocol - Status code higher than 400 Status 400 Message Bad Request
...
Thanks, I was waiting for your feedbacks about this issue!
Don't hesitate to run the tests of the MapPush project : the failing one is testWebSocketBroadcastMessageWithBoundsChange()
Take care to enable it before launching TestNG, It was disabled to pass tests to green... (yes, the right way to do TDD!)
This issue seems to have been fixed in recent Atmosphere/Nettosphere releases.
I just updated project's dependencies version to the following:
Jersey 1.12
Atmosphere 1.0.0
Nettosphere 1.4.2
AHC 1.7.6
Jetty 8.1.7.v20120910
And all my unit tests finally passed to green :)
However, I still have the following two log lines when sending a message from client to server through WebSocket:
17:10:39.090 [New I/O worker #17] DEBUG o.a.nettosphere.NettyWebSocket - The WebSocket handshake succeeded but the dispatched URI failed Bad Request:400. The WebSocket connection is still open and client can continue sending messages.
17:10:39.091 [New I/O worker #17] WARN o.a.w.protocol.SimpleHttpProtocol - Status code higher or equal than 400 Status 400 Message Bad Request
This append both in unit tests (Nettosphere) and while running on Jetty. I these logs are not related to this issue, but I'm curious about the reason of this the dispatched URI failed Bad Request:400 (the second line is probably a consequence of the first one).
I am trying to run integration tests on my realtime resources using Nettosphere and AHC.
I face a strange server-side error when sending data from client to server (largely based on the Nettosphere's WebSocket unit test NettyAtmosphereTest#suspendWebSocketTest()).
While executing, this outputs the following message in the console:
Server-side, the WebSocketEventListener I set in the returned SuspendResponse never receive any message.
You can find the full source code of the related (failing) test here.
I use the following versions (but also tried on latest snapshots available):
Atmosphere 0.9.1, Nettosphere 1.3.1, AHC 1.7.4
EDIT: updated to Atmosphere 0.9.5, Nettosphere 1.4.0 and AHC 1.7.5 versions, the issue is still there
The text was updated successfully, but these errors were encountered: