Could not get a resource from the pool
来源:互联网 发布:以下商品禁止淘宝发布 编辑:程序博客网 时间:2024/05/21 11:31
最近封装了一个cache缓存工具包,今天redis报错:Could not get a resource from the pool
上网搜了很多资料,没找到比较有用的信息,后来发现原因如下:
刚开始我们的redis部署在内网,就没有设置密码,后来迁移到阿里云服务器,设置了密码。
if(StringUtils.isNotBlank(password)){ jedisPool = new JedisPool(config, redisHost, Integer.parseInt(redisPort),1000*60*5,password);}else{ jedisPool = new JedisPool(config, redisHost, Integer.parseInt(redisPort));}
同事在使用的时候,使用的是老的工具包,不包含带密码的初始化。
如果你也遇到整个问题,检查下自己的密码是否正确吧。
1 0
- redis JedisConnectionException: Could not get a resource from the pool
- Could not get a resource from the pool
- Could not get a resource from the pool 错误分析
- Could not get a resource from the pool
- Redis:Could not get a resource from the pool
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- redis---Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- 急求大婶指导redis Could not get a resource from the pool 异常
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- 处理应用端连接redis报could not get a resource from the pool问题
- redis提示Could not get a resource from the pool(jedis连接池配置)
- Invocation of init method failed; Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- 第六章 第一节
- ActiveMQ进阶配置
- 杨辉三角形【找规律】
- 使用CocoaPods源代码管理器
- UVA 11795Mega Man's Mission 【状压dp】
- Could not get a resource from the pool
- 芯邦主控的U盘量产教程
- JavaScript常见问题和解决方式
- 计算机图形学基础知识-----渲染流水线
- Slurm Quick Start Tutorial
- 性能优化之PHP优化
- 2015年中国虚拟现实行业研究报告
- hdoj 2546 饭卡《01背包》
- 关于java集合的学习总结