NutzCN Logo
问答 在使用websocket时出现空指针--请帮帮忙解决
发布于 1808天前 作者 JasonWzlong 1822 次浏览 复制 上一个帖子 下一个帖子
标签:
我到这里了把----setRoomProvider
我到这里了把----setSession
我到这里了把----setHttpSession
我到这里了把----setEndpoint
我到这里了把----init
十二月 03, 2019 6:13:08 下午 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler process
严重: Error reading request, ignored
java.lang.NullPointerException
	at org.apache.tomcat.websocket.Util.getGenericType(Util.java:186)
	at org.apache.tomcat.websocket.Util.getGenericType(Util.java:206)
	at org.apache.tomcat.websocket.Util.getGenericType(Util.java:206)
	at org.apache.tomcat.websocket.Util.getMessageType(Util.java:164)
	at org.apache.tomcat.websocket.Util.getMessageHandlers(Util.java:360)
	at org.apache.tomcat.websocket.WsSession.addMessageHandler(WsSession.java:181)
	at org.nutz.plugins.mvc.websocket.AbstractWsEndpoint.onOpen(AbstractWsEndpoint.java:78)
	at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:129)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:633)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

1 回复

参考AbstractWsHandler,还有额外接口需要实现

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