NutzCN Logo
问答 nutzwk5.x添加删除菜单报错
发布于 1527天前 作者 bb3239 1943 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

nutzwk5.x菜单添加、删除、编辑等都报错,所用的redis版本5.0.5,日志如下:

[ERROR] 14:26:47.918 [DubboServerHandler-192.168.20.157:11010-thread-200] com.alibaba.dubbo.rpc.filter.ExceptionFilter -  [DUBBO] Got unchecked and undeclared exception which called by 192.168.20.157. service: cn.wizzer.app.sys.modules.services.SysMenuService, method: clearCache, exception: java.lang.NoSuchMethodError: redis.clients.jedis.ScanResult.isCompleteIteration()Z, dubbo version: 2.6.6, current host: 192.168.20.157
java.lang.NoSuchMethodError: redis.clients.jedis.ScanResult.isCompleteIteration()Z
	at org.nutz.plugins.wkcache.WkcacheRemoveAllInterceptor.delCache(WkcacheRemoveAllInterceptor.java:48)
	at org.nutz.plugins.wkcache.WkcacheRemoveAllInterceptor.filter(WkcacheRemoveAllInterceptor.java:33)
	at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
	at cn.wizzer.app.sys.modules.services.impl.SysMenuServiceImpl$$NUTZAOP.clearCache(SysMenuServiceImpl.java:1)
	at com.alibaba.dubbo.common.bytecode.Wrapper19.invokeMethod(Wrapper19.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:66)
	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)
4 回复

ava.lang.NoSuchMethodError
jedis版本升级至2.10.2
也可通过升级nutzboot/nutz版本解决

<nutzboot.version>2.4.1.v20201014</nutzboot.version>
<nutz.version>1.r.68.v20201011</nutz.version>

beetl版本也升级了,它换了包名 org.beetl.core.tag.GeneralVarTagBinding;

@Wizzercn 你这个jedis引用是在别的插件里面引用的,不在工程模块的pom里面,所以可能我还改不了jedis版本,只能直接升级nutzboot/nutz版本了

@Wizzercn json4Excel这个插件下载不下来

<dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutz-integration-json4excel</artifactId>
            <version>${nutz.version}</version>
        </dependency>

@Wizzercn 可以了,小失误

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