出现以下错误
Caused by: 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.ShardedJedisPool.getResource(ShardedJedisPool.java:36)
at com.xxl.sso.core.util.JedisUtil.getInstance(JedisUtil.java:105)
at com.xxl.sso.core.util.JedisUtil.init(JedisUtil.java:33)
at com.xxl.sso.server.config.XxlSsoConfig.afterPropertiesSet(XxlSsoConfig.java:25)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
... 21 common frames omitted
Caused by: java.util.NoSuchElementException: Unable to validate object
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:494)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:361)
at redis.clients.util.Pool.getResource(Pool.java:49)
... 27 common frames omitted
出现这个原因是reids连接异常,仔细检查连接地址以及Redis帐号密码是否正确