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

來源:互聯網
上載者:User

標籤: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 morenull

 用戶端能ping通

發現問題

本地代碼擷取ip為127.0.0.1,既redis叢集不對外發布,注意建立叢集時指定ip而不是127.0.0.1(即時你是偽叢集)

 一個疏忽的錯誤吧,大家注意一下

 

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.