码迷,mamicode.com
首页 > 编程语言 > 详细

redis:java.util.NoSuchElementException: Unable to validate object

时间:2017-12-06 18:07:41      阅读:432      评论:0      收藏:0      [点我收藏+]

标签:trie   handle   date   manage   obj   cep   分享   slots   nts   

redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool
    at redis.clients.util.Pool.getResource(Pool.java:51)
    at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)
    at redis.clients.jedis.JedisClusterInfoCache.renewClusterSlots(JedisClusterInfoCache.java:103)
    at redis.clients.jedis.JedisClusterConnectionHandler.renewSlotCache(JedisClusterConnectionHandler.java:52)
    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:135)
    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)
    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)
    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)
    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)
    at redis.clients.jedis.JedisClusterCommand.runBinary(JedisClusterCommand.java:60)
    at redis.clients.jedis.BinaryJedisCluster.get(BinaryJedisCluster.java:98)
    at com.sinosig.components.redis.server.RedisCacheManager.getObj(RedisCacheManager.java:27)
    at com.sinosig.components.redis.server.RedisCacheManager.main(RedisCacheManager.java:37)
Caused by: java.util.NoSuchElementException: Unable to validate object
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:506)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
    at redis.clients.util.Pool.getResource(Pool.java:49)
    ... 12 more
null

 客户端能ping通

技术分享图片

发现问题

技术分享图片

本地代码获取ip为127.0.0.1,既redis集群不对外发布,注意创建集群时指定ip而不是127.0.0.1(即时你是伪集群)

 一个疏忽的错误吧,大家注意一下

 

redis:java.util.NoSuchElementException: Unable to validate object

标签:trie   handle   date   manage   obj   cep   分享   slots   nts   

原文地址:http://www.cnblogs.com/yinfj/p/7993436.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!