NutzCN Logo
问答 nutz清除redis缓存报错
发布于 1472天前 作者 GFS-Zhang 1500 次浏览 复制 上一个帖子 下一个帖子
标签:

更新后nutz版本,清理缓存报错JedisCluster only supports SCAN commands with MATCH patterns containing hash-tags ( curly-brackets enclosed strings )

12 回复

之前缓存报了错java.lang.NoSuchMethodError: redis.clients.jedis.ScanResult.isCompleteIteration()Z,更新了nutz版本如下
<nutz.version>1.r.68.v20201011</nutz.version>
<nutzboot.version>2.4.2-SNAPSHOT</nutzboot.version>,但是现在清理缓存报错
java.lang.IllegalArgumentException: JedisCluster only supports SCAN commands with MATCH patterns containing hash-tags ( curly-brackets enclosed strings )
at redis.clients.jedis.JedisCluster.scan(JedisCluster.java:1374)
at org.nutz.integration.jedis.JedisClusterWrapper.scan(JedisClusterWrapper.java:1626)
at org.nutz.integration.jedis.RedisService.scan(RedisService.java:6414)
at org.nutz.plugins.wkcache.WkcacheRemoveEntryInterceptor.filter(WkcacheRemoveEntryInterceptor.java:68)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.wizzer.app.pay.modules.services.impl.PayOrderServiceImpl$$NUTZAOP.deleteCache(PayOrderServiceImpl.java:1)
at com.alibaba.dubbo.common.bytecode.Wrapper0.invokeMethod(Wrapper0.java)
at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47)
at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:76)
at com.alibaba.dubbo.config.invoker.DelegateProviderMetaDataInvoker.invoke(DelegateProviderMetaDataInvoker.java:52)
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)
at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:62)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboProviderFilter.invoke(SentinelDubboProviderFilter.java:70)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:73)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:138)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:104)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:173)
at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

哦, 可能是大鲨鱼的修改导致的

那是要更新版本吗?

@wendal 集群模式下报错,不集群是可以用的,网上说是集群模式下不支持

找一下大鲨鱼吧

@gfs-zhang budwk nutzmore nutzboot 已更改并提交。

@Wizzercn 昨晚更新了,今天调用服务没一会就连接超时了

[ERROR] 11:25:31.584 [pool-2-thread-52] cn.wizzer.app.web.commons.ext.websocket.WkNotifyService - Failed to invoke the method getUnreadNum in the service cn.wizzer.app.sys.modules.services.SysMsgUserService. Tried 1 times of the providers [192.168.1.163:17849] (1/1) from the registry 192.168.1.196:8848 on the consumer 192.168.1.163 using the dubbo version 2.6.7. Last error is: Invoke remote method timeout. method: getUnreadNum, provider: dubbo://192.168.1.163:17849/cn.wizzer.app.sys.modules.services.SysMsgUserService?anyhost=true&application=wk-nb-web-vue&category=providers&check=false&default.check=false&default.retries=0&default.timeout=300000&dubbo=2.0.2&generic=false&interface=cn.wizzer.app.sys.modules.services.SysMsgUserService&methods=insertRelation,insertOrUpdate,deleteCache,getMaxId,getSubPath,getField,vDelete,execute,fetchx,fetchLinks,updateRelation,insertLinks,getParentPath,listPageLinks,getEntity,updateWith,fetch,exists,getUnreadNum,listPageMap,listPage,updateWithVersion,data,insertWith,clearCache,dao,getUnreadList,query,count,listEntity,list,getMap,updateAndIncrIfMatch,updateLinks,getEntityClass,fastInsert,update,insert,delete,updateIgnoreNull,clear,getNutMap&pid=22416&protocol=dubbo&qos.enable=false&register.ip=192.168.1.163&remote.timestamp=1605236571979&side=consumer&timestamp=1605236770783, cause: Waiting server-side response timeout. start time: 2020-11-13 11:20:31.581, end time: 2020-11-13 11:25:31.583, client elapsed: 1 ms, server elapsed: 300001 ms, timeout: 300000 ms, request: Request [id=83, version=2.0.2, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=getUnreadNum, parameterTypes=[class java.lang.String], arguments=[admin], attachments={path=cn.wizzer.app.sys.modules.services.SysMsgUserService, dubboApplication=wk-nb-web-vue, interface=cn.wizzer.app.sys.modules.services.SysMsgUserService, version=0.0.0, timeout=300000}]], channel: /192.168.1.163:3375 -> /192.168.1.163:17849
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getUnreadNum in the service cn.wizzer.app.sys.modules.services.SysMsgUserService. Tried 1 times of the providers [192.168.1.163:17849] (1/1) from the registry 192.168.1.196:8848 on the consumer 192.168.1.163 using the dubbo version 2.6.7. Last error is: Invoke remote method timeout. method: getUnreadNum, provider: dubbo://192.168.1.163:17849/cn.wizzer.app.sys.modules.services.SysMsgUserService?anyhost=true&application=wk-nb-web-vue&category=providers&check=false&default.check=false&default.retries=0&default.timeout=300000&dubbo=2.0.2&generic=false&interface=cn.wizzer.app.sys.modules.services.SysMsgUserService&methods=insertRelation,insertOrUpdate,deleteCache,getMaxId,getSubPath,getField,vDelete,execute,fetchx,fetchLinks,updateRelation,insertLinks,getParentPath,listPageLinks,getEntity,updateWith,fetch,exists,getUnreadNum,listPageMap,listPage,updateWithVersion,data,insertWith,clearCache,dao,getUnreadList,query,count,listEntity,list,getMap,updateAndIncrIfMatch,updateLinks,getEntityClass,fastInsert,update,insert,delete,updateIgnoreNull,clear,getNutMap&pid=22416&protocol=dubbo&qos.enable=false&register.ip=192.168.1.163&remote.timestamp=1605236571979&side=consumer&timestamp=1605236770783, cause: Waiting server-side response timeout. start time: 2020-11-13 11:20:31.581, end time: 2020-11-13 11:25:31.583, client elapsed: 1 ms, server elapsed: 300001 ms, timeout: 300000 ms, request: Request [id=83, version=2.0.2, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=getUnreadNum, parameterTypes=[class java.lang.String], arguments=[admin], attachments={path=cn.wizzer.app.sys.modules.services.SysMsgUserService, dubboApplication=wk-nb-web-vue, interface=cn.wizzer.app.sys.modules.services.SysMsgUserService, version=0.0.0, timeout=300000}]], channel: /192.168.1.163:3375 -> /192.168.1.163:17849
	at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:109)
	at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:244)
	at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)
	at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
	at com.alibaba.dubbo.common.bytecode.proxy7.getUnreadNum(proxy7.java)
	at cn.wizzer.app.web.commons.ext.websocket.WkNotifyService.getMsg(WkNotifyService.java:90)
	at cn.wizzer.app.web.commons.ext.websocket.WkNotifyService$$NUTZAOP._aop_invoke(WkNotifyService.java:3)
	at org.nutz.aop.InterceptorChain.invoke(InterceptorChain.java:77)
	at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:57)
	at org.nutz.aop.interceptor.async._async_task.call(AsyncMethodInterceptor.java:43)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout. start time: 2020-11-13 11:20:31.581, end time: 2020-11-13 11:25:31.583, client elapsed: 1 ms, server elapsed: 300001 ms, timeout: 300000 ms, request: Request [id=83, version=2.0.2, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=getUnreadNum, parameterTypes=[class java.lang.String], arguments=[admin], attachments={path=cn.wizzer.app.sys.modules.services.SysMsgUserService, dubboApplication=wk-nb-web-vue, interface=cn.wizzer.app.sys.modules.services.SysMsgUserService, version=0.0.0, timeout=300000}]], channel: /192.168.1.163:3375 -> /192.168.1.163:17849
	at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:159)
	at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:135)
	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:95)
	at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:155)
	at com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilter.invoke(SentinelDubboConsumerFilter.java:64)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.csp.sentinel.adapter.dubbo.DubboAppContextFilter.invoke(DubboAppContextFilter.java:43)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:49)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77)
	at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)
	at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78)
	... 13 common frames omitted

@gfs-zhang 你这个错和缓存没关系啊?

@Wizzercn 重新编译过了,sid没有过期的时候他是可以操作的,sid过期了服务就调不到了

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