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




相关推荐
lichenyang4534 小时前
Docker 学习笔记(一):为什么需要镜像、容器和仓库?
前端
kyriewen4 小时前
别再对着 TypeScript 报错发呆了:我把 10 个最常见的红色波浪线翻译成了人话
前端·javascript·typescript
IT_陈寒4 小时前
SpringBoot自动配置的坑,我的API突然就404了
前端·人工智能·后端
奇奇怪怪的5 小时前
Embedding 模型 10+ 横向评测
前端
陈广亮5 小时前
Monorepo 从 0 到 1 实操指南 2026 版:pnpm catalogs + Turborepo 2.x + changesets 全链路
前端
子兮曰5 小时前
OpenMontage 深度解剖:你的 AI 编程助手,其实是个视频工作室
前端·后端·ai编程
敲代码的鱼5 小时前
PDF 预览与签名批注写回 支持安卓 iOS 鸿蒙 UTS插件
android·前端·ios
子兮曰5 小时前
前端工具链的「Rust 化」:一场没有赢家的军备竞赛?
前端·后端·rust
Hyyy7 小时前
Function Calling / Tool Use的原理和实现模式
前端·llm·ai编程