Redis jedisconnectionexception:could not get a resource from the pool

Source: Internet
Author: User
Tags apache tomcat

HTTP Status 500-cannot get Jedis connection; Nested exception is redis.clients.jedis.exceptions.JedisConnectionException:Could does get a resource from the pool

Type Exception reportmessage cannot get Jedis connection; Nested exception is redis.clients.jedis.exceptions.JedisConnectionException:Could no get a resource from the POOLDESCRI Ption the server encountered an internal error that prevented it from fulfilling this request.exceptionorg.springframework . data.redis.RedisConnectionFailureException:Cannot get Jedis connection; Nested exception is redis.clients.jedis.exceptions.JedisConnectionException:Could no get a resource from the POOLORG.SP Ringframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector ( JEDISCONNECTIONFACTORY.JAVA:97) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:143) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:41) Org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection ( redisconnectionutils.java:128) Org.springframework.data.redis.core.RedisConnectionUTils.getconnection (redisconnectionutils.java:91) Org.springframework.data.redis.core.RedisConnectionUtils.getConnection (redisconnectionutils.java:78) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:177) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:152) Org.springframework.data.redis.core.AbstractOperations.execute (abstractoperations.java:84) Org.springframework.data.redis.core.DefaultValueOperations.get (defaultvalueoperations.java:43) Org.springframework.data.redis.core.DefaultBoundValueOperations.get (defaultboundvalueoperations.java:41) Com.auth.provider.impl.DefaultRememberMeProvider.findRememberMeById (defaultremembermeprovider.java:47) Com.auth.AbstractSessionManager.getRememberMe (abstractsessionmanager.java:254) Com.auth.filter.AuthenticationFilter.doFilterInternal (authenticationfilter.java:84) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) Org.springframework.web.filter.DelegatingFilterPRoxy.invokedelegate (delegatingfilterproxy.java:343) Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260) Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) root Causeredis.clients.jedis.exceptions.JedisConnectionException:Could not get a resource from the Poolredis.clients.util.Pool.getResource (pool.java:42) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector ( JEDISCONNECTIONFACTORY.JAVA:90) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:143) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:41) Org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection ( redisconnectionutils.java:128) Org.springframework.data.redis.core.RedisConnectiOnutils.getconnection (redisconnectionutils.java:91) Org.springframework.data.redis.core.RedisConnectionUtils.getConnection (redisconnectionutils.java:78) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:177) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:152) Org.springframework.data.redis.core.AbstractOperations.execute (abstractoperations.java:84) Org.springframework.data.redis.core.DefaultValueOperations.get (defaultvalueoperations.java:43) Org.springframework.data.redis.core.DefaultBoundValueOperations.get (defaultboundvalueoperations.java:41) Com.auth.provider.impl.DefaultRememberMeProvider.findRememberMeById (defaultremembermeprovider.java:47) Com.auth.AbstractSessionManager.getRememberMe (abstractsessionmanager.java:254) Com.auth.filter.AuthenticationFilter.doFilterInternal (authenticationfilter.java:84) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) Org.springframework.web.filter.DelegatingFiltErproxy.invokedelegate (delegatingfilterproxy.java:343) Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260) Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) root Causeredis.clients.jedis.exceptions.JedisConnectionException:java.net.ConnectException:Connection refused: Connectredis.clients.jedis.Connection.connect (connection.java:142) Redis.clients.jedis.BinaryClient.connect ( binaryclient.java:75) Redis.clients.jedis.BinaryJedis.connect (binaryjedis.java:1724) Redis.clients.jedis.JedisFactory.makeObject (jedisfactory.java:65) Org.apache.commons.pool2.impl.GenericObjectPool.create (genericobjectpool.java:836) Org.apache.commons.pool2.impl.GenericObjectPool.borrowObject (genericobjectpool.java:434) Org.apache.commons.pool2.impl.GenericObjectPool.borrowObject (genericobjectpool.java:361) Redis.clients.util.Pool.getResoUrce (pool.java:40) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector ( JEDISCONNECTIONFACTORY.JAVA:90) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:143) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:41) Org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection ( redisconnectionutils.java:128) Org.springframework.data.redis.core.RedisConnectionUtils.getConnection ( redisconnectionutils.java:91) Org.springframework.data.redis.core.RedisConnectionUtils.getConnection ( redisconnectionutils.java:78) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:177) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:152) Org.springframework.data.redis.core.AbstractOperations.execute (abstractoperations.java:84) Org.springframework.data.redis.core.DefaultValueOperations.get (Defaultvalueoperations.java:43) Org.springframework.data.redis.core.DefaultBoundValueOperations.get ( defaultboundvalueoperations.java:41) Com.auth.provider.impl.DefaultRememberMeProvider.findRememberMeById ( defaultremembermeprovider.java:47) Com.auth.AbstractSessionManager.getRememberMe (Abstractsessionmanager.java : 254) com.auth.filter.AuthenticationFilter.doFilterInternal (authenticationfilter.java:84) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (delegatingfilterproxy.java:343) Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260) Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) root Causejava.net.ConnectException:Connection Refused:connectjava.net.DualStackPlainSocketImpl.waitForConnect ( Native Method) JAVA.NEt. Dualstackplainsocketimpl.socketconnect (Unknown Source) Java.net.AbstractPlainSocketImpl.doConnect (Unknown source) Java.net.AbstractPlainSocketImpl.connectToAddress (Unknown Source) Java.net.AbstractPlainSocketImpl.connect ( Unknown source) Java.net.PlainSocketImpl.connect (Unknown source) Java.net.SocksSocketImpl.connect (Unknown source) Java.net.Socket.connect (Unknown Source) redis.clients.jedis.Connection.connect (connection.java:137) Redis.clients.jedis.BinaryClient.connect (binaryclient.java:75) Redis.clients.jedis.BinaryJedis.connect ( binaryjedis.java:1724) Redis.clients.jedis.JedisFactory.makeObject (jedisfactory.java:65) Org.apache.commons.pool2.impl.GenericObjectPool.create (genericobjectpool.java:836) Org.apache.commons.pool2.impl.GenericObjectPool.borrowObject (genericobjectpool.java:434) Org.apache.commons.pool2.impl.GenericObjectPool.borrowObject (genericobjectpool.java:361) Redis.clients.util.Pool.getResource (POOL.JAVA:40) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetChjedisconnector (jedisconnectionfactory.java:90) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:143) Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:41) Org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection ( redisconnectionutils.java:128) Org.springframework.data.redis.core.RedisConnectionUtils.getConnection ( redisconnectionutils.java:91) Org.springframework.data.redis.core.RedisConnectionUtils.getConnection ( redisconnectionutils.java:78) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:177) Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:152) Org.springframework.data.redis.core.AbstractOperations.execute (abstractoperations.java:84) Org.springframework.data.redis.core.DefaultValueOperations.get (defaultvalueoperations.java:43) Org.springframework.data.redis.core.DefaultBoundValueOperations.get (Defaultboundvalueoperations.java:41) Com.auth.provider.impl.DefaultRememberMeProvider.findRememberMeById ( defaultremembermeprovider.java:47) Com.auth.AbstractSessionManager.getRememberMe (Abstractsessionmanager.java : 254) com.auth.filter.AuthenticationFilter.doFilterInternal (authenticationfilter.java:84) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (delegatingfilterproxy.java:343) Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260) Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88) Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106) Note the full stack Trace of the root cause is available in the Apache tomcat/7.0.54 logs. Apache tomcat/7.0.54
This error is usually caused by redis not booting, or the inability to connect to Redis due to firewalls and other reasons;

Redis jedisconnectionexception:could not get a resource from the pool

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.