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
But if I visit it with "Advanced REST client" for the ws url: ws://localhost:8080/book-service/ws, it can't be connected. At meanwhile, the console of mvn prints error:
[WARNING]
java.lang.NoSuchMethodError: javax.websocket.Session.addMessageHandler(Ljava/lang/Class;Ljavax/websocket/MessageHandler$Whole;)V
at org.everrest.websockets.WSConnectionImpl.onOpen(WSConnectionImpl.java:75)
at org.eclipse.jetty.websocket.jsr356.endpoints.JsrEndpointEventDriver.onConnect(JsrEndpointEventDriver.java:140)
at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.openSession(AbstractEventDriver.java:220)
at org.eclipse.jetty.websocket.jsr356.endpoints.AbstractJsrEventDriver.openSession(AbstractJsrEventDriver.java:104)
at org.eclipse.jetty.websocket.common.WebSocketSession.open(WebSocketSession.java:424)
at org.eclipse.jetty.websocket.server.WebSocketServerConnection.onOpen(WebSocketServerConnection.java:76)
at org.eclipse.jetty.io.AbstractEndPoint.upgrade(AbstractEndPoint.java:191)
at org.eclipse.jetty.server.HttpConnection.onCompleted(HttpConnection.java:363)
at org.eclipse.jetty.server.HttpChannel.onCompleted(HttpChannel.java:525)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:414)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:237)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:240)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:93)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceRun.produceAndRun(ExecuteProduceRun.java:191)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceRun.run(ExecuteProduceRun.java:126)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:641)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:559)
at java.lang.Thread.run(Thread.java:745)
2016-02-26 13:08:20,235[qtp177389135-14] [DEBUG] [o.e.w.WSConnectionContext 97] - Close connection WSConnectionImpl{id=1, wsSession=websocket-1, channels=[]} with status 1011
I've run the
everrest-samples/book-service
example:The api is working well: http://localhost:8080/book-service/books/101.
But if I visit it with "Advanced REST client" for the ws url: ws://localhost:8080/book-service/ws, it can't be connected. At meanwhile, the console of mvn prints error:
I checked the dependencies of the project is:
The text was updated successfully, but these errors were encountered: