io.lettuce.core.RedisCommandTimeoutException: Command timed out after no timeout

2019-04-19 15:15:07.928 ERROR 20456 — [nio-8801-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]  : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after no timeout] with root cause

io.lettuce.core.RedisCommandTimeoutException: Command timed out after no timeout
at io.lettuce.core.ExceptionFactory.createTimeoutException(ExceptionFactory.java:51) ~[lettuce-core-5.1.6.RELEASE.jar:na]
at io.lettuce.core.LettuceFutures.awaitOrCancel(LettuceFutures.java:114) ~[lettuce-core-5.1.6.RELEASE.jar:na]
at io.lettuce.core.FutureSyncInvocationHandler.handleInvocation(FutureSyncInvocationHandler.java:69) ~[lettuce-core-5.1.6.RELEASE.jar:na]
at io.lettuce.core.internal.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:80) ~[lettuce-core-5.1.6.RELEASE.jar:na]
at com.sun.proxy. P r o x y 177. g e t ( U n k n o w n S o u r c e )   [ n a : n a ] a t o r g . s p r i n g f r a m e w o r k . d a t a . r e d i s . c o n n e c t i o n . l e t t u c e . L e t t u c e S t r i n g C o m m a n d s . g e t ( L e t t u c e S t r i n g C o m m a n d s . j a v a : 66 )   [ s p r i n g − d a t a − r e d i s − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . d a t a . r e d i s . c o n n e c t i o n . D e f a u l t e d R e d i s C o n n e c t i o n . g e t ( D e f a u l t e d R e d i s C o n n e c t i o n . j a v a : 253 )   [ s p r i n g − d a t a − r e d i s − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . d a t a . r e d i s . c a c h e . D e f a u l t R e d i s C a c h e W r i t e r . l a m b d a Proxy177.get(Unknown Source) ~[na:na] at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:66) ~[spring-data-redis-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:253) ~[spring-data-redis-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.redis.cache.DefaultRedisCacheWriter.lambda Proxy177.get(UnknownSource) [na:na]atorg.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:66) [springdataredis2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:253) [springdataredis2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.redis.cache.DefaultRedisCacheWriter.lambdaget 1 ( D e f a u l t R e d i s C a c h e W r i t e r . j a v a : 109 )   [ s p r i n g − d a t a − r e d i s − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . d a t a . r e d i s . c a c h e . D e f a u l t R e d i s C a c h e W r i t e r . e x e c u t e ( D e f a u l t R e d i s C a c h e W r i t e r . j a v a : 242 )   [ s p r i n g − d a t a − r e d i s − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . d a t a . r e d i s . c a c h e . D e f a u l t R e d i s C a c h e W r i t e r . g e t ( D e f a u l t R e d i s C a c h e W r i t e r . j a v a : 109 )   [ s p r i n g − d a t a − r e d i s − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . d a t a . r e d i s . c a c h e . R e d i s C a c h e . l o o k u p ( R e d i s C a c h e . j a v a : 82 )   [ s p r i n g − d a t a − r e d i s − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c a c h e . s u p p o r t . A b s t r a c t V a l u e A d a p t i n g C a c h e . g e t ( A b s t r a c t V a l u e A d a p t i n g C a c h e . j a v a : 58 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c a c h e . i n t e r c e p t o r . A b s t r a c t C a c h e I n v o k e r . d o G e t ( A b s t r a c t C a c h e I n v o k e r . j a v a : 73 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c a c h e . i n t e r c e p t o r . C a c h e A s p e c t S u p p o r t . f i n d I n C a c h e s ( C a c h e A s p e c t S u p p o r t . j a v a : 554 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c a c h e . i n t e r c e p t o r . C a c h e A s p e c t S u p p o r t . f i n d C a c h e d I t e m ( C a c h e A s p e c t S u p p o r t . j a v a : 519 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c a c h e . i n t e r c e p t o r . C a c h e A s p e c t S u p p o r t . e x e c u t e ( C a c h e A s p e c t S u p p o r t . j a v a : 401 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c a c h e . i n t e r c e p t o r . C a c h e A s p e c t S u p p o r t . e x e c u t e ( C a c h e A s p e c t S u p p o r t . j a v a : 345 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c a c h e . i n t e r c e p t o r . C a c h e I n t e r c e p t o r . i n v o k e ( C a c h e I n t e r c e p t o r . j a v a : 61 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . R e f l e c t i v e M e t h o d I n v o c a t i o n . p r o c e e d ( R e f l e c t i v e M e t h o d I n v o c a t i o n . j a v a : 186 )   [ s p r i n g − a o p − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . C g l i b A o p P r o x y 1(DefaultRedisCacheWriter.java:109) ~[spring-data-redis-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.redis.cache.DefaultRedisCacheWriter.execute(DefaultRedisCacheWriter.java:242) ~[spring-data-redis-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.redis.cache.DefaultRedisCacheWriter.get(DefaultRedisCacheWriter.java:109) ~[spring-data-redis-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.redis.cache.RedisCache.lookup(RedisCache.java:82) ~[spring-data-redis-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.cache.support.AbstractValueAdaptingCache.get(AbstractValueAdaptingCache.java:58) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.cache.interceptor.AbstractCacheInvoker.doGet(AbstractCacheInvoker.java:73) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.findInCaches(CacheAspectSupport.java:554) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.findCachedItem(CacheAspectSupport.java:519) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:401) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:345) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.aop.framework.CglibAopProxy 1(DefaultRedisCacheWriter.java:109) [springdataredis2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.redis.cache.DefaultRedisCacheWriter.execute(DefaultRedisCacheWriter.java:242) [springdataredis2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.redis.cache.DefaultRedisCacheWriter.get(DefaultRedisCacheWriter.java:109) [springdataredis2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.redis.cache.RedisCache.lookup(RedisCache.java:82) [springdataredis2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.cache.support.AbstractValueAdaptingCache.get(AbstractValueAdaptingCache.java:58) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.cache.interceptor.AbstractCacheInvoker.doGet(AbstractCacheInvoker.java:73) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.cache.interceptor.CacheAspectSupport.findInCaches(CacheAspectSupport.java:554) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.cache.interceptor.CacheAspectSupport.findCachedItem(CacheAspectSupport.java:519) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:401) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:345) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [springaop5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.aop.framework.CglibAopProxyDynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.hong.user.login.service.impl.PersonServiceImpl E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIBf74ff32f.getPersonByIdCode() ~[classes/:na]
at org.hong.user.login.controller.PersonController.getPersonByIdCode(PersonController.java:26) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_77]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.cloud.context.scope.GenericScope L o c k e d S c o p e d P r o x y F a c t o r y B e a n . i n v o k e ( G e n e r i c S c o p e . j a v a : 499 )   [ s p r i n g − c l o u d − c o n t e x t − 2.1.1. R E L E A S E . j a r : 2.1.1. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . R e f l e c t i v e M e t h o d I n v o c a t i o n . p r o c e e d ( R e f l e c t i v e M e t h o d I n v o c a t i o n . j a v a : 186 )   [ s p r i n g − a o p − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . C g l i b A o p P r o x y LockedScopedProxyFactoryBean.invoke(GenericScope.java:499) ~[spring-cloud-context-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.aop.framework.CglibAopProxy LockedScopedProxyFactoryBean.invoke(GenericScope.java:499) [springcloudcontext2.1.1.RELEASE.jar:2.1.1.RELEASE]atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [springaop5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.aop.framework.CglibAopProxyDynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.hong.user.login.controller.PersonController E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIBd11c7e5b.getPersonByIdCode() ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_77]

报以上错误,检查代码时发现,配置文件有问题

io.lettuce.core.RedisCommandTimeoutException: Command timed out after no timeout_第1张图片
timeout时间调整大一点200以上吧。完美解决

你可能感兴趣的:(redis,Redis)