• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

[Bug0050] LettuceConnectionFactory was destroyed and cannot be used anymore

武飞扬头像
CodeRain程序雨
帮助1

1、问题

LettuceConnectionFactory was destroyed and cannot be used anymore

报错日志:应该是写了rfid 硬件扫描,但是电脑未连接RFID硬件扫描设备

学新通

  1.  
    java.lang.IllegalStateException: LettuceConnectionFactory was destroyed and cannot be used anymore
  2.  
    at org.springframework.util.Assert.state(Assert.java:76)
  3.  
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.assertInitialized(LettuceConnectionFactory.java:1263)
  4.  
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:414)
  5.  
    at org.springframework.data.redis.core.RedisConnectionUtils.fetchConnection(RedisConnectionUtils.java:193)
  6.  
    at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:144)
  7.  
    at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:105)
  8.  
    at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:209)
  9.  
    at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:189)
  10.  
    at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:96)
  11.  
    at org.springframework.data.redis.core.DefaultListOperations.rightPop(DefaultListOperations.java:239)
  12.  
    at com.ruoyi.station.modbus.service.impl.RfidConsumer.lambda$processRfidScan$0(RfidConsumer.java:69)
  13.  
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  14.  
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  15.  
    at java.lang.Thread.run(Unknown Source)
学新通

2、场景

新电脑启动项目/某天项目重启。

3、原因

未排查原因

4、解决方案

清一下Idea缓存重启项目解决

再次出问题重启项目无法解决,重启电脑解决。

似乎是Redis 连接方案的问题。

分类: 解决方案

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgakkcj
系列文章
更多 icon
同类精品
更多 icon
继续加载