2
回答
谁来帮俺解决一下,百度一上午了:Failed to call onClose method of POJO end point for POJO of type
终于搞明白,存储TCO原来是这样算的>>>   

三月 15, 2017 10:46:48 上午 org.apache.tomcat.websocket.pojo.PojoEndpointBase onClose
严重: Failed to call onClose method of POJO end point for POJO of type [com.zhixun.mobile.modules.dadu.socket.DaduFrontWebSocket]
java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor760.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose(PojoEndpointBase.java:107)
    at org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:514)
    at org.apache.tomcat.websocket.WsSession.onClose(WsSession.java:496)
    at org.apache.tomcat.websocket.WsFrameBase.processDataControl(WsFrameBase.java:348)
    at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:290)
    at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:131)
    at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:67)
    at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler$WsReadListener.onDataAvailable(WsHttpUpgradeHandler.java:204)
    at org.apache.coyote.http11.upgrade.AbstractServletInputStream.onDataAvailable(AbstractServletInputStream.java:203)
    at org.apache.coyote.http11.upgrade.AbstractProcessor.upgradeDispatch(AbstractProcessor.java:93)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:621)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:722)
Caused by: 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:1206)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.textStart(WsRemoteEndpointImplBase.java:1169)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:194)
    at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
    at com.zhixun.mobile.modules.dadu.socket.DaduFrontWebSocket.sendMessage(DaduFrontWebSocket.java:254)
    at com.zhixun.mobile.modules.dadu.socket.DaduFrontWebSocket.onClose(DaduFrontWebSocket.java:200)
    ... 20 more

顶部