Jetty9 JSR356 WebSocket客户端-UpgradeException问题

时间:2018-10-01 12:01:30

标签: java jetty-9 java-websocket

我已经实现了Jetty JSR356客户端实现,该实现仅连接到Web套接字服务器,首先将握手连接发送到服务器,该握手连接由服务器连接,然后服务器返回响应,然后出现错误。 杰克-8 码头-9.4.0.M0

我已经完成了Jetty 356 Web套接字实现建议的简单实现- 通过使用链接-https://examples.javacodegeeks.com/enterprise-java/jetty/jetty-websocket-example/

错误-ava.io.IOException:连接失败         在org.eclipse.jetty.websocket.jsr356.ClientContainer.connect(ClientContainer.java:161)         在org.eclipse.jetty.websocket.jsr356.ClientContainer.connectToServer(ClientContainer.java:184)         在com.bilogicsys.hplus.cbwsi.ipi.client.controler.WebSocketClient.setupHandshakeConnection(WebSocketClient.java:105)         在com.bilogicsys.hplus.cbwsi.ipi.client.controler.WebSocketClient.main(WebSocketClient.java:40) 引起原因:org.eclipse.jetty.websocket.api.UpgradeException:连接正在升级,关闭(预期升级)         在org.eclipse.jetty.websocket.client.io.UpgradeConnection.validateResponse(UpgradeConnection.java:359)         在org.eclipse.jetty.websocket.client.io.UpgradeConnection.read(UpgradeConnection.java:280)         在org.eclipse.jetty.websocket.client.io.UpgradeConnection.onFillable(UpgradeConnection.java:196)         在org.eclipse.jetty.io.AbstractConnection $ ReadCallback.succeeded(AbstractConnection.java:269)         在org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:97)         在org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:202)         在org.eclipse.jetty.io.AbstractConnection $ ReadCallback.succeeded(AbstractConnection.java:269)         在org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:97)         在org.eclipse.jetty.io.ChannelEndPoint $ 2.run(ChannelEndPoint.java:124)         在org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)         在org.eclipse.jetty.util.thread.QueuedThreadPool $ 2.run(QueuedThreadPool.java:590)         在java.lang.Thread.run(Thread.java:748)

0 个答案:

没有答案