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版本不一致导致




相关推荐
|晴 天|3 小时前
Vue 3 + TypeScript + Element Plus 博客系统开发总结与思考
前端·vue.js·typescript
柴米油盐那点事儿4 小时前
python+mysql+bootstrap条件搜索分页
python·mysql·flask·bootstrap
猫3284 小时前
v-cloak
前端·javascript·vue.js
旷世奇才李先生4 小时前
Vue 3\+Vite\+Pinia实战:企业级前端项目架构设计
前端·javascript·vue.js
SoaringHeart6 小时前
Flutter进阶:用OverlayEntry 实现所有弹窗效果
前端·flutter
奇舞精选6 小时前
写 HTML 就能做视频?HeyGen 开源的这个工具有点意思
html·agent
IT_陈寒7 小时前
Vite静态资源加载把我坑惨了
前端·人工智能·后端
herinspace8 小时前
管家婆实用贴-如何分离和附加数据库
开发语言·前端·javascript·数据库·语音识别
小码哥_常8 小时前
从MVC到MVI:一文吃透架构模式进化史
前端
嗷o嗷o8 小时前
Android BLE 的 notify 和 indicate 到底有什么区别
前端