HTTP Status 500-cannot get Jedis connection; Nested exception is Redis.clients.jedis.exceptions.Je__HTTP

Source: Internet
Author: User
Tags stack trace apache tomcat
HTTP Status 500-cannot get Jedis connection; Nested exception is redis.clients.jedis.exceptions.JedisConnectionException:Could not get a resource from the pool

Type Exception the cannot get Jedis connection; Nested exception is redis.clients.jedis.exceptions.JedisConnectionException:Could don't get a resource from the pool DESCR

Iption the "server encountered an internal error" prevented it from fulfilling this request. Exception org.springframework.data.redis.RedisConnectionFailureException:Cannot get Jedis connection; Nested exception is redis.clients.jedis.exceptions.JedisConnectionException:Could don't get a resource from the pool Org.s Pringframework.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 cause Redis.clients.jedis.exceptions.JedisConnectionException:Could not get a resource from the pool Redis.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 cause redis.clients.jedis.exceptions.JedisConnectionException:
	Java.net.ConnectException:Connection refused:connect Redis.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 cause java.net.ConnectException:Connection Refused:connect Java.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) NoteThe full stack trace's the root cause is available in the Apache tomcat/7.0.54 logs. Apache tomcat/7.0.54

This error usually occurs because the Redis does not start, or because the firewall and other reasons can not connect to the Redis;

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.