NutzCN Logo
问答 nutz这个 框架 支持 redis 哨兵模式的不
发布于 1670天前 作者 一直在猜疑 1930 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

edisPoolConfig@69c43e48)]
because:redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'AUTH'
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:25)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
... 25 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'AUTH'
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.getStatusCodeReply(Connection.java:239)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:96)
at redis.clients.jedis.Connection.sendCommand(Connection.java:126)
at redis.clients.jedis.Connection.sendCommand(Connection.java:117)
at redis.clients.jedis.BinaryClient.auth(BinaryClient.java:564)
at redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2138)
at redis.clients.jedis.JedisClusterConnectionHandler.initializeSlotsCache(JedisClusterConnectionHandler.java:36)
at redis.clients.jedis.JedisClusterConnectionHandler.(JedisClusterConnectionHandler.java:17)
at redis.clients.jedis.JedisSlotBasedConnectionHandler.(JedisSlotBasedConnectionHandler.java:24)
at redis.clients.jedis.BinaryJedisCluster.(BinaryJedisCluster.java:54)
at redis.clients.jedis.JedisCluster.(JedisCluster.java:93)
at redis.clients.jedis.JedisCluster$FC$e434dc36ac08527ca6ffe52e946564ae.invoke(JedisCluster.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
... 27 common frames omitted
[INFO ] 15:33:14.726 [main] org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@1043317832 is closing. startup date [20-04-27 15:32:57.608] [DEBUG] 15:33:14.726 [main] org.nutz.ioc.impl.ScopeContext - Depose object 'jedisPoolConfig' ...
[DEBUG] 15:33:14.726 [main] org.nutz.ioc.impl.ScopeContext - Depose object 'jedisClusterNodes' ...
[DEBUG] 15:33:14.726 [main] org.nutz.ioc.impl.ScopeContext - Depose object 'loglevelHeartbeatThread' ...
[DEBUG] 15:33:14.727 [main] org.nutz.ioc.impl.ScopeContext - Depose object 'pubSubService' ...
[DEBUG] 15:33:14.727 [main] org.nutz.integration.jedis.pubsub.PubSubService - punsubscribe logback:loglevel:pubsub
redis.clients.jedis.exceptions.JedisConnectionException: JedisPubSub is not subscribed to a Jedis instance.
at redis.clients.jedis.JedisPubSub.punsubscribe(JedisPubSub.java:86)
at org.nutz.integration.jedis.pubsub.PubSubService.depose(PubSubService.java:65)
at org.nutz.integration.jedis.pubsub.PubSubService$FM$depose$10583fbff8d536aad3a9d8b6141ae03e.invoke(PubSubService.java)
at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:181)
at org.nutz.ioc.ObjectProxy.depose(ObjectProxy.java:83)
at org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:110)
at org.nutz.ioc.impl.ScopeContext.depose(ScopeContext.java:122)
at org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:297)
at org.nutz.boot.AppContext.depose(AppContext.java:299)
at org.nutz.boot.NbApp._shutdown(NbApp.java:228)
at org.nutz.boot.NbApp.run(NbApp.java:185)
at cn.wizzer.app.sys.commons.core.DubboRpcSysMainLauncher.main(DubboRpcSysMainLauncher.java:39)
[DEBUG] 15:33:14.727 [main] org.nutz.ioc.impl.ScopeContext - Depose object 'jedisAgent' ...
[DEBUG] 15:33:14.727 [main] org.nutz.ioc.impl.ScopeContext - Depose object 'redisService' ...
[DEBUG] 15:33:14.727 [main] org.nutz.ioc.impl.ScopeContext - Depose object '31799i90e8ia0q24re48qene82' ...
[INFO ] 15:33:14.728 [main] com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Unregister: dubbo://172.17.180.106:20880/cn.wizzer.app.sys.modules.services.SysFareLogService?anyhost=true&application=wk-nb-service-sys&dubbo=2.0.2&generic=false&interface=cn.wizzer.app.sys.modules.services.SysFareLogService&methods=updateWithVersion,insertRelation,data,insertWith,insertOrUpdate,dao,getMaxId,getSubPath,query,count,getField,vDelete,list,fetchx,execute,updateAndIncrIfMatch,getMap,updateLinks,getEntityClass,fetchLinks,updateRelation,fastInsert,insertLinks,update,insert,getParentPath,delete,updateIgnoreNull,listPageLinks,clear,getEntity,updateWith,fetch,exists,listPageMap,listPage&pid=28766&revision=5.2.2&side=provider&threads=200×tamp=1587972794145, dubbo version: 5.2.2, current host: 172.17.180.106
[WARN ] 15:33:14.729 [jedis.pubsub.logback:loglevel:pubsub] org.nutz.integration.jedis.pubsub.PubSubService - something wrong!! sleep 3s
org.nutz.ioc.IocException: IocBean[jedisCluster] throw Exception when creating
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:75)
at org.nutz.ioc.ObjectProxy.get(ObjectProxy.java:69)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:261)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
at org.nutz.integration.jedis.JedisAgent.getJedisClusterWrapper(JedisAgent.java:66)
at org.nutz.integration.jedis.JedisAgent.jedis(JedisAgent.java:50)
at org.nutz.integration.jedis.pubsub.PubSubService$1.run(PubSubService.java:31)
Caused by: org.nutz.lang.born.BorningException: Fail to born or cast to 'redis.clients.jedis.JedisCluster'
by args: [
@([172.17.241.43:26379])
@(2000)
@(0)
@(10)
@(test123)
@(redis.clients.jedis.JedisPoolConfig@69c43e48)]
because:redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'AUTH'
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:25)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
... 10 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'AUTH'
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.getStatusCodeReply(Connection.java:239)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:96)
at redis.clients.jedis.Connection.sendCommand(Connection.java:126)
at redis.clients.jedis.Connection.sendCommand(Connection.java:117)
at redis.clients.jedis.BinaryClient.auth(BinaryClient.java:564)
at redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2138)
at redis.clients.jedis.JedisClusterConnectionHandler.initializeSlotsCache(JedisClusterConnectionHandler.java:36)
at redis.clients.jedis.JedisClusterConnectionHandler.(JedisClusterConnectionHandler.java:17)
at redis.clients.jedis.JedisSlotBasedConnectionHandler.(JedisSlotBasedConnectionHandler.java:24)
at redis.clients.jedis.BinaryJedisCluster.(BinaryJedisCluster.java:54)
at redis.clients.jedis.JedisCluster.(JedisCluster.java:93)
at redis.clients.jedis.JedisCluster$FC$e434dc36ac08527ca6ffe52e946564ae.invoke(JedisCluster.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
... 12 common frames omitted

6 回复

jedis插件不支持哨兵,redis集群模式才是正路

原有应用都是 哨兵 模式 新购买的应用是nutz框架 ,想改成原有的哨兵模式 意思是不支持!

不支持,除非自己改jedis插件

把插件源码看完再问

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