NutzCN Logo
问答 不知道为啥有时会出现jedisConnectionException异常
发布于 2580天前 作者 gitwqj 3076 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
	at redis.clients.util.Pool.getResource(Pool.java:53)
	at redis.clients.jedis.JedisPool.getResource(JedisPool.java:99)
	at cn.xhbds.utils.RedisInterceptor.filter(RedisInterceptor.java:24)
	at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
	at cn.xhbds.service.redis.RedisService$$NUTZAOP.get(RedisService.java:1)
	at cn.xhbds.service.observer.MDeviceMessageManager.getDeviceMessage(MDeviceMessageManager.java:63)
	at cn.xhbds.service.observer.MDeviceMessageManager.updateOffline(MDeviceMessageManager.java:165)
	at cn.xhbds.service.redis.RedisPubSub.lambda$2(RedisPubSub.java:143)
	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.IllegalStateException: Pool not open
	at org.apache.commons.pool2.impl.BaseGenericObjectPool.assertOpen(BaseGenericObjectPool.java:672)
	at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:412)
	at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
	at redis.clients.util.Pool.getResource(Pool.java:49)
	... 13 more

导致这个错误的原因有哪些

1 回复

cn.xhbds.service.redis.RedisPubSub 昨天有人问过,在Setup.depose里面把线程关掉

添加回复
请先登陆
回到顶部