type Exception report
message Request processing failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) javax.servlet.http.HttpServlet.service(HttpServlet.java:620) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.minshengec.filter.MsLogFilter.doFilter(MsLogFilter.java:26) com.minshengec.session.redis.RedisSessionFilter.doFilter(RedisSessionFilter.java:102) com.minshengec.filter.XSSFilter.doFilter(XSSFilter.java:28) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:100) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:147) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:41) org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:81) org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:53) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:173) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:153) org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:86) org.springframework.data.redis.core.DefaultHashOperations.get(DefaultHashOperations.java:45) com.minshengec.session.redis.HttpSessionSidRedisWrapper.getAttribute(HttpSessionSidRedisWrapper.java:24) org.springframework.web.servlet.support.SessionFlashMapManager.retrieveFlashMaps(SessionFlashMapManager.java:46) org.springframework.web.servlet.support.AbstractFlashMapManager.retrieveAndUpdate(AbstractFlashMapManager.java:87) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:848) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) javax.servlet.http.HttpServlet.service(HttpServlet.java:620) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.minshengec.filter.MsLogFilter.doFilter(MsLogFilter.java:26) com.minshengec.session.redis.RedisSessionFilter.doFilter(RedisSessionFilter.java:102) com.minshengec.filter.XSSFilter.doFilter(XSSFilter.java:28) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool redis.clients.util.Pool.getResource(Pool.java:22) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:93) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:147) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:41) org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:81) org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:53) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:173) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:153) org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:86) org.springframework.data.redis.core.DefaultHashOperations.get(DefaultHashOperations.java:45) com.minshengec.session.redis.HttpSessionSidRedisWrapper.getAttribute(HttpSessionSidRedisWrapper.java:24) org.springframework.web.servlet.support.SessionFlashMapManager.retrieveFlashMaps(SessionFlashMapManager.java:46) org.springframework.web.servlet.support.AbstractFlashMapManager.retrieveAndUpdate(AbstractFlashMapManager.java:87) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:848) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) javax.servlet.http.HttpServlet.service(HttpServlet.java:620) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.minshengec.filter.MsLogFilter.doFilter(MsLogFilter.java:26) com.minshengec.session.redis.RedisSessionFilter.doFilter(RedisSessionFilter.java:102) com.minshengec.filter.XSSFilter.doFilter(XSSFilter.java:28) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect timed out redis.clients.jedis.Connection.connect(Connection.java:134) redis.clients.jedis.BinaryClient.connect(BinaryClient.java:69) redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1665) redis.clients.jedis.JedisPool$JedisFactory.makeObject(JedisPool.java:72) org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1158) redis.clients.util.Pool.getResource(Pool.java:20) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:93) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:147) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:41) org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:81) org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:53) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:173) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:153) org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:86) org.springframework.data.redis.core.DefaultHashOperations.get(DefaultHashOperations.java:45) com.minshengec.session.redis.HttpSessionSidRedisWrapper.getAttribute(HttpSessionSidRedisWrapper.java:24) org.springframework.web.servlet.support.SessionFlashMapManager.retrieveFlashMaps(SessionFlashMapManager.java:46) org.springframework.web.servlet.support.AbstractFlashMapManager.retrieveAndUpdate(AbstractFlashMapManager.java:87) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:848) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) javax.servlet.http.HttpServlet.service(HttpServlet.java:620) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.minshengec.filter.MsLogFilter.doFilter(MsLogFilter.java:26) com.minshengec.session.redis.RedisSessionFilter.doFilter(RedisSessionFilter.java:102) com.minshengec.filter.XSSFilter.doFilter(XSSFilter.java:28) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
java.net.SocketTimeoutException: connect timed out java.net.PlainSocketImpl.socketConnect(Native Method) java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) java.net.Socket.connect(Socket.java:579) redis.clients.jedis.Connection.connect(Connection.java:129) redis.clients.jedis.BinaryClient.connect(BinaryClient.java:69) redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1665) redis.clients.jedis.JedisPool$JedisFactory.makeObject(JedisPool.java:72) org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1158) redis.clients.util.Pool.getResource(Pool.java:20) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:93) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:147) org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:41) org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:81) org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:53) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:173) org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:153) org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:86) org.springframework.data.redis.core.DefaultHashOperations.get(DefaultHashOperations.java:45) com.minshengec.session.redis.HttpSessionSidRedisWrapper.getAttribute(HttpSessionSidRedisWrapper.java:24) org.springframework.web.servlet.support.SessionFlashMapManager.retrieveFlashMaps(SessionFlashMapManager.java:46) org.springframework.web.servlet.support.AbstractFlashMapManager.retrieveAndUpdate(AbstractFlashMapManager.java:87) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:848) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) javax.servlet.http.HttpServlet.service(HttpServlet.java:620) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.minshengec.filter.MsLogFilter.doFilter(MsLogFilter.java:26) com.minshengec.session.redis.RedisSessionFilter.doFilter(RedisSessionFilter.java:102) com.minshengec.filter.XSSFilter.doFilter(XSSFilter.java:28) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.