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




相关推荐
Master_Azur3 分钟前
javaScript进阶
前端
markfeng85 分钟前
React入门教学
前端·react.js
ze_juejin5 分钟前
Object.defineProperty vs Proxy 对比总结
前端
wing9814 分钟前
我的AI编程体验:从白嫖到付费,我为什么最终留下了Codex
前端·人工智能·程序员
京东云开发者24 分钟前
京东Taro Native框架静态布局直渲提速
前端
程序员小羊!25 分钟前
03JavaScript预备知识
前端
前端的阶梯25 分钟前
Cursor 开发 Python 项目完全指南
前端·人工智能·后端
艾伦野鸽ggg33 分钟前
JavaScript 基础语法速通
前端·javascript
不懂的浪漫35 分钟前
AI 时代还需要买课吗?我用 Skills + Markdown + HTML 搭了一套自学系统
前端·人工智能·html·skill
前端的阶梯38 分钟前
Conda 开发 Python 程序完全指南
前端·人工智能·后端