无法连接到redis

pcrecxhr  于 2021-06-08  发布在  Redis
关注(0)|答案(0)|浏览(270)

我正试着用绝地武士和redis联系。我使用jedispool配置、用户名/密码、默认超时和ssl创建了一个jedispool。但我无法从绝地武士那里得到资源。

"error":{
         "message":"Could not get a resource from the pool",
         "stack":[
            "redis.clients.jedis.util.Pool.getResource(Pool.java:59)",
            "redis.clients.jedis.JedisPool.getResource(JedisPool.java:288)",
"redis.clients.jedis.Connection.disconnect(Connection.java:182)",
               "redis.clients.jedis.BinaryClient.disconnect(BinaryClient.java:936)",
               "redis.clients.jedis.Connection.close(Connection.java:172)",
               "redis.clients.jedis.BinaryClient.close(BinaryClient.java:942)",
               "redis.clients.jedis.BinaryJedis.close(BinaryJedis.java:1944)",
               "redis.clients.jedis.Jedis.close(Jedis.java:3524)",
               "redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:143)",
               "org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:889)",
               "org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:424)",
               "org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:349)",
               "redis.clients.jedis.util.Pool.getResource(Pool.java:50)",
               "redis.clients.jedis.JedisPool.getResource(JedisPool.java:288)",

"cause":{
               "message":"Read timed out",
               "stack":[
                  "java.base/java.net.SocketInputStream.socketRead0(Native Method)",
                  "java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)",
                  "java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)",
                  "java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)",
                  "java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:467)",
                  "java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:461)",
                  "java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)",
                  "java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:110)",
                  "java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1403)",
                  "java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1309)",
                  "java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)",
                  "java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:814)",
                  "java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1184)",
                  "redis.clients.jedis.util.RedisOutputStream.flushBuffer(RedisOutputStream.java:52)",
                  "redis.clients.jedis.util.RedisOutputStream.flush(RedisOutputStream.java:133)",
                  "redis.clients.jedis.Connection.disconnect(Connection.java:178)",
                  "redis.clients.jedis.BinaryClient.disconnect(BinaryClient.java:936)",
                  "redis.clients.jedis.Connection.close(Connection.java:172)",
                  "redis.clients.jedis.BinaryClient.close(BinaryClient.java:942)",
                  "redis.clients.jedis.BinaryJedis.close(BinaryJedis.java:1944)",
                  "redis.clients.jedis.Jedis.close(Jedis.java:3524)",
                  "redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:143)",

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题