这个异常对项目似乎没有什么影响,但是控制台会报这个异常,怎么解决
redis.clients.jedis.exceptions.JedisException: Could not return the broken resource to the pool
at redis.clients.jedis.util.Pool.returnBrokenResourceObject(Pool.java:116)
at redis.clients.jedis.util.Pool.returnBrokenResource(Pool.java:98)
at redis.clients.jedis.JedisPool.returnResource(JedisPool.java:378)
at redis.clients.jedis.JedisPool.returnResource(JedisPool.java:15)
at redis.clients.jedis.Jedis.close(Jedis.java:3957)
at redis.clients.jedis.JedisFactory.destroyObject(JedisFactory.java:166)
at org.apache.commons.pool2.PooledObjectFactory.destroyObject(PooledObjectFactory.java:126)
at org.apache.commons.pool2.impl.GenericObjectPool.destroy(GenericObjectPool.java:958)
at org.apache.commons.pool2.impl.GenericObjectPool.evict(GenericObjectPool.java:797)
at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1160)
at org.apache.commons.pool2.impl.EvictionTimer$WeakRunner.run(EvictionTimer.java:213)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Invalidated object not currently part of this pool
at org.apache.commons.pool2.impl.GenericObjectPool.invalidateObject(GenericObjectPool.java:642)
at org.apache.commons.pool2.impl.GenericObjectPool.invalidateObject(GenericObjectPool.java:620)
at redis.clients.jedis.util.Pool.returnBrokenResourceObject(Pool.java:114)
... 18 common frames omitted