HTTP Status 500, httpstatus500

Source: Internet
Author: User
Tags apache tomcat

HTTP Status 500, httpstatus500
HTTP Status 500-Cannot get Jedis connection; nested exception is redis. clients. jedis. exceptions. JedisConnectionException: cocould not get a resource from the pool

type Exception reportmessage Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pooldescription 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 not get a resource from the poolorg.springframework.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

The cause of this error is that Redis is not started or cannot be connected to Redis due to firewall or other reasons;

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.