NutzCN Logo
问答 nutzbook项目问题
发布于 2417天前 作者 yahtob 1645 次浏览 复制 上一个帖子 下一个帖子
标签:

兽哥,我只是在其他模块没走YvrModule 直接用YvrService.add(topic,uid),然后刷列表时就报着个错,topic里有标题,内容,还有tp=share

redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holding the wrong kind of value
7 回复

完整报错信息,及报错的具体代码

是不是因为我之前添加了帖子,后来我把mysql库直接删除重建导致的

21:15:12.150 DEBUG (NutzbookWsStringHandler.java:64) join - session(id=6kl5hqc9i4h2eo9q5k66u2aatf) join room(name=home)
redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holding the wrong kind of value
	at redis.clients.jedis.Protocol.processError(Protocol.java:127)
	at redis.clients.jedis.Protocol.process(Protocol.java:161)
	at redis.clients.jedis.Protocol.read(Protocol.java:215)
	at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340)
	at redis.clients.jedis.Connection.getIntegerReply(Connection.java:265)
	at redis.clients.jedis.Jedis.hset(Jedis.java:658)
	at net.wendal.nutzbook.websocket.NutzbookWsStringHandler.join(NutzbookWsStringHandler.java:67)
	at net.wendal.nutzbook.websocket.NutzbookWsStringHandler.onMessage(NutzbookWsStringHandler.java:49)
	at net.wendal.nutzbook.websocket.NutzbookWsStringHandler.onMessage(NutzbookWsStringHandler.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:186)
	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:647)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
	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)

你动过websocket存储的key?redis里面的,应该是叫ws:room:home,删掉

或者redis清空,flushall命令

既然重建了数据库,那么ehcache的缓存文件也得删除

收到。感谢老大

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