我是靠谱客的博主 幽默往事,这篇文章主要介绍redis.clients.jedis.exceptions.JedisDataException......attempt to compare nil with number ,现在分享给大家,希望可以做个参考。

八月 03, 2020 6:15:54 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [doseckill] in context with path [/Seckill] threw exception
redis.clients.jedis.exceptions.JedisDataException: ERR Error running script (call to f_83236acb1751b8026fe5361015881ce04f73347d): @user_script:10: user_script:10: attempt to compare nil with number 

 

模拟秒杀,报错。

原因:没有给产品添加库存

 

解决办法:在redis中添加库存

192.168.108.128:6379> set Seckill:0101:kc 10
OK
 

 

最后

以上就是幽默往事最近收集整理的关于redis.clients.jedis.exceptions.JedisDataException......attempt to compare nil with number 的全部内容,更多相关redis.clients.jedis.exceptions.JedisDataException......attempt内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(126)

评论列表共有 0 条评论

立即
投稿
返回
顶部