欢迎您来到腾讯云!积分商城

腾讯云腾讯云论坛

 找回密码
 立即注册
忘了密码?

扫一扫,访问微社区

快捷导航
搜索
查看: 9950|回复: 7

[已答复] redis 集成spring 错误,密码已经正确填写了

[复制链接]

1

主题

0

好友

55

积分

小白[LV1]

Rank: 1

云币
49
威望
23
发表于 2015-10-7 16:20:49 |显示全部楼层
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:965)
        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
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:140)
        org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:229)
        org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:57)
        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.RedisTemplate.execute(RedisTemplate.java:140)
        com.yaotu.base.redis.RedisCache.get(RedisCache.java:62)
        org.springframework.cache.interceptor.CacheAspectSupport.inspectCacheables(CacheAspectSupport.java:294)
        org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:199)
        org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
        org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
        org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633)
        com.yaotu.service.ComAccountService$$EnhancerBySpringCGLIB$$3cbdee5b.getComAccount(<generated>)
        com.yaotu.base.web.controller.BaseController.getCurrentAccount(BaseController.java:83)
        com.yaotu.base.web.controller.BaseController.setLibraryid(BaseController.java:215)
        com.yaotu.base.web.controller.BaseController.setIdentity(BaseController.java:205)
        com.yaotu.base.web.interceptor.LoginInterceptor.preHandle(LoginInterceptor.java:22)
        org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:913)
        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        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:133)
        org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:229)
        org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:57)
        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.RedisTemplate.execute(RedisTemplate.java:140)
        com.yaotu.base.redis.RedisCache.get(RedisCache.java:62)
        org.springframework.cache.interceptor.CacheAspectSupport.inspectCacheables(CacheAspectSupport.java:294)
        org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:199)
        org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
        org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
        org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633)
        com.yaotu.service.ComAccountService$$EnhancerBySpringCGLIB$$3cbdee5b.getComAccount(<generated>)
        com.yaotu.base.web.controller.BaseController.getCurrentAccount(BaseController.java:83)
        com.yaotu.base.web.controller.BaseController.setLibraryid(BaseController.java:215)
        com.yaotu.base.web.controller.BaseController.setIdentity(BaseController.java:205)
        com.yaotu.base.web.interceptor.LoginInterceptor.preHandle(LoginInterceptor.java:22)
        org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:913)
        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
root cause

redis.clients.jedis.exceptions.JedisDataException: ERR invalid password
        redis.clients.jedis.Protocol.processError(Protocol.java:104)
        redis.clients.jedis.Protocol.process(Protocol.java:122)
        redis.clients.jedis.Protocol.read(Protocol.java:191)
        redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:175)
        redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2132)
        redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:67)
        org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
        org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:452)
        org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
        redis.clients.util.Pool.getResource(Pool.java:40)
        org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:133)
        org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:229)
        org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:57)
        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.RedisTemplate.execute(RedisTemplate.java:140)
        com.yaotu.base.redis.RedisCache.get(RedisCache.java:62)
        org.springframework.cache.interceptor.CacheAspectSupport.inspectCacheables(CacheAspectSupport.java:294)
        org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:199)
        org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
        org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
        org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633)
        com.yaotu.service.ComAccountService$$EnhancerBySpringCGLIB$$3cbdee5b.getComAccount(<generated>)
        com.yaotu.base.web.controller.BaseController.getCurrentAccount(BaseController.java:83)
        com.yaotu.base.web.controller.BaseController.setLibraryid(BaseController.java:215)
        com.yaotu.base.web.controller.BaseController.setIdentity(BaseController.java:205)
        com.yaotu.base.web.interceptor.LoginInterceptor.preHandle(LoginInterceptor.java:22)
        org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:913)
        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        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.42 logs.

1

主题

0

好友

55

积分

小白[LV1]

Rank: 1

云币
49
威望
23
发表于 2015-10-7 16:21:28 |显示全部楼层
本地redis已经测试过了,
回复

使用道具 举报

0

主题

0

好友

34

积分

小白[LV1]

Rank: 1

云币
19
威望
3
发表于 2015-10-7 21:20:28 |显示全部楼层
可以先用redis-cli连接看看,api的密码那个字段要填 instance-id:password 才行
回复

使用道具 举报

1

主题

0

好友

55

积分

小白[LV1]

Rank: 1

云币
49
威望
23
发表于 2015-11-14 12:49:18 |显示全部楼层
mikezou 发表于 2015-10-7 21:20
可以先用redis-cli连接看看,api的密码那个字段要填 instance-id:password 才行

是这个问题,已解决
回复

使用道具 举报

0

主题

0

好友

22

积分

小白[LV1]

Rank: 1

云币
10
威望
10
发表于 2016-3-1 20:40:06 |显示全部楼层
耀途科技 发表于 2015-11-14 12:49
是这个问题,已解决

对的,纠结了半天
回复

使用道具 举报

0

主题

0

好友

46

积分

小白[LV1]

Rank: 1

云币
20
威望
20
发表于 2016-3-2 10:38:45 |显示全部楼层
耀途科技 发表于 2015-11-14 12:49
是这个问题,已解决

api的密码那个字段要填 instance-id:password 才行  请问 这句话怎么理解啊,应该在哪里设置?
回复

使用道具 举报

0

主题

0

好友

46

积分

小白[LV1]

Rank: 1

云币
20
威望
20
发表于 2016-3-2 10:42:26 |显示全部楼层
iamstrong 发表于 2016-3-1 20:40
对的,纠结了半天

api的密码那个字段要填 instance-id:password 才行  请问 这句话怎么理解啊,应该在哪里设置?
回复

使用道具 举报

0

主题

0

好友

46

积分

小白[LV1]

Rank: 1

云币
20
威望
20
发表于 2016-3-2 10:49:04 |显示全部楼层
mikezou 发表于 2015-10-7 21:20
可以先用redis-cli连接看看,api的密码那个字段要填 instance-id:password 才行

api的密码那个字段要填 instance-id:password 才行  请问 这句话怎么理解啊,应该在哪里设置?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册
您需要登录后才可以发帖 QQ登录

联系我们|腾讯云平台|积分商城|腾讯云官方论坛    

GMT+8, 2018-2-18 07:13 , Processed in 1.159230 second(s), 27 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部