概述
2019独角兽企业重金招聘Python工程师标准>>>
org.springframework.dao.InvalidDataAccessApiUsageException: ERR value is not an integer or out of range; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR value is not an integer or out of range
at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:64) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:41) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:37) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:37) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.connection.jedis.JedisConnection.convertJedisAccessException(JedisConnection.java:212) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.connection.jedis.JedisConnection.incrBy(JedisConnection.java:1439) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.connection.DefaultStringRedisConnection.incrBy(DefaultStringRedisConnection.java:444) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.core.DefaultValueOperations$3.doInRedis(DefaultValueOperations.java:66) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.core.DefaultValueOperations$3.doInRedis(DefaultValueOperations.java:63) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:202) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:164) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:88) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at org.springframework.data.redis.core.DefaultValueOperations.increment(DefaultValueOperations.java:63) ~[spring-data-redis-1.7.2.RELEASE.jar:na]
at com.xdja.eoa.util.RedisUtil$Strings.incrBy(RedisUtil.java:804) ~[eoa-base-1.0.0.jar:na]
at com.xdja.eoa.mobile.control.login.LoginLogoutController.login(LoginLogoutController.java:133) ~[eoa-mobile-1.0.0.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_71]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_71]
- 因为使用了JDK序列化方式,加上了版本号,当你使用incrby时不能转换成数字进行相加,修改成StringRedisSerializer,即可解决。
转载于:https://my.oschina.net/u/1787735/blog/897958
最后
以上就是矮小眼神为你收集整理的ERR value is not an integer or out of range的全部内容,希望文章能够帮你解决ERR value is not an integer or out of range所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复