本文所使用的技術(shù)為spring mvc + tomcat7實現(xiàn)的tomcat技術(shù),在刷新頁面后出現(xiàn)異常
錯誤關(guān)鍵字 java.util.concurrent.ExecutionException: java.net.SocketException:
Software caused connection abort: socket write error] 異常方法為:public void handleTransportError(WebSocketSession webSocketSession, Throwable e) throws Exception {} 如下圖:

22:26:46.360 [http-bio-8080-exec-2] ERROR com.webchat.websocket.ChatWebSocketHandler - []
java.net.SocketException: Software caused connection abort: socket write error]
22:26:46.361 [http-bio-8080-exec-2] ERROR com.webchat.websocket.ChatWebSocketHandler -
[] [websocket 連接異常2,:->Message will not be sent because the WebSocket session has been closed]
window.onbeforeunload = function(event) {
ws.onclose =function(){};
ws.close();
}
原因分析:
|