error=‘null‘], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand]

问题

查看java应用启动日志输出下面错误:

error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand]

复制代码
Completing command LatencyMeteredCommand [type=INFO, output=StatusOutput [output=# Server
redis_version:4.0.14
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:6eb529b77a3f2394
redis_mode:standalone
os:Linux 6.6.0-28.0.0.34.oe2403.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:12.3.1
process_id:1073
run_id:c4a203cea02169d86b3aaefc65dcac556ae6b0b6
tcp_port:6380
uptime_in_seconds:336208
uptime_in_days:3
hz:10
lru_clock:5232219
executable:/usr/bin/redis-server
config_file:/etc/redis.conf
, error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand]
^C

问题解决

commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand 表示这是一个订阅命令,通常用于 Redis 的发布/订阅功能

error='null' 表示在执行 Redis 命令时没有错误,但输出结果为 null。这可能是因为命令没有返回任何数据,或者数据不存在

查看Redis版本

更换到 Redis: 6.0+

问题解决了!

是服务和Redis版本不一致导致




相关推荐
杨超越luckly5 分钟前
HTML应用指南:利用POST请求获取全国爱回收门店位置信息
大数据·前端·python·信息可视化·html
鹏多多1 小时前
解锁flutter弹窗新姿势:dialog-flutter_smart_dialog插件解读+案例
前端·flutter·客户端
IT_陈寒1 小时前
Redis 7.0的这个新特性让我处理百万级QPS轻松了50%,你可能还不知道!
前端·人工智能·后端
2301_796512521 小时前
Rust编程学习 - 如何快速构建一个单线程 web server
前端·学习·rust
蒜香拿铁1 小时前
Angular【核心特性】
前端·javascript·angular.js
天天向上10241 小时前
vue3 css使用v-bind实现动态样式
前端·css·vue.js
艾小码1 小时前
前端新手必看!困扰90%人的10个JavaScript问题,一次性帮你解决
前端·javascript
xixixin_4 小时前
【React】为什么移除事件要写在useEffect的return里面?
前端·javascript·react.js
嘗_4 小时前
react 源码2
前端·javascript·react.js
我只会写Bug啊8 小时前
Vue文件预览终极方案:PNG/EXCEL/PDF/DOCX/OFD等10+格式一键渲染,开源即用!
前端·vue.js·pdf·excel·预览