NutzCN Logo
问答 websocket返回数据时报错
发布于 2353天前 作者 qq_6c186ef5 2676 次浏览 复制 上一个帖子 下一个帖子
标签:
java.lang.IllegalStateException: The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1177)
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.textStart(WsRemoteEndpointImplBase.java:1140)
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendStringByCompletion(WsRemoteEndpointImplBase.java:213)
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendStringByFuture(WsRemoteEndpointImplBase.java:201)
	at org.apache.tomcat.websocket.WsRemoteEndpointAsync.sendText(WsRemoteEndpointAsync.java:53)
	at org.nutz.plugins.mvc.websocket.AbstractWsEndpoint.sendJson(AbstractWsEndpoint.java:215)
	at com.risun.count.module.page1.FirstPageAction.exe(FirstPageAction.java:75)
	at com.risun.common.nut_websocket.MySimpleWsHandler.exe(MySimpleWsHandler.java:73)
	at com.risun.common.nut_websocket.MySimpleWsHandler.onMessage(MySimpleWsHandler.java:48)
	at com.risun.common.nut_websocket.MySimpleWsHandler.onMessage(MySimpleWsHandler.java:1)
	at org.apache.tomcat.websocket.WsFrameBase.sendMessageText(WsFrameBase.java:399)
	at org.apache.tomcat.websocket.WsFrameBase.processDataText(WsFrameBase.java:500)
	at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:295)
	at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:131)
	at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:71)
	at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler$WsReadListener.onDataAvailable(WsHttpUpgradeHandler.java:185)
	at org.apache.coyote.http11.upgrade.AbstractServletInputStream.onDataAvailable(AbstractServletInputStream.java:198)
	at org.apache.coyote.http11.upgrade.AbstractProcessor.upgradeDispatch(AbstractProcessor.java:96)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:661)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1533)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1489)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Unknown Source)
2 回复

tomcat的具体版本号是多少, 升级到最新版试试

添加回复
请先登陆
回到顶部