org.springframework.data.redis.RedisSystemException: Unknown redis exception; nested exception is java.lang.ClassCastException: [B cannot be cast to java.lang.Long

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This is likely a problem with the integration between Jedis and Spring Data, try using just Jedis and check if the problem is still happening.

,
Expert tip

This is likely a problem with the integration between Jedis and Spring Data, try using just Jedis and check if the problem is still happening.

Solutions on the web

via Spring JIRA by Deepak Pol, 1 year ago
Unknown redis exception; nested exception is java.lang.ClassCastException: [B cannot be cast to java.lang.Long
via GitHub by deepakpol
, 1 year ago
Unknown redis exception; nested exception is java.lang.ClassCastException: [B cannot be cast to java.lang.Long
via Spring JIRA by Deepak Pol, 1 year ago
Unknown redis exception; nested exception is java.lang.ClassCastException: [B cannot be cast to java.lang.Long
via Stack Overflow by user2111500
, 1 year ago
Unknown redis exception; nested exception is java.lang.ClassCastException: [B cannot be cast to java.lang.Long
via GitHub by satb
, 2 years ago
Unknown redis exception; nested exception is java.lang.NullPointerException
via Spring JIRA by Mark Paluch, 1 year ago
Unknown redis exception; nested exception is java.lang.ClassCastException: com.lambdaworks.redis.cluster.RedisClusterClient cannot be cast to com.lambdaworks.redis.RedisClient
org.springframework.data.redis.RedisSystemException: Unknown redis exception; nested exception is java.lang.ClassCastException: [B cannot be cast to java.lang.Long
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.getFallback(FallbackExceptionTranslationStrategy.java:48)
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:38)
at org.springframework.data.redis.connection.jedis.JedisConnection.convertJedisAccessException(JedisConnection.java:195)
at org.springframework.data.redis.connection.jedis.JedisConnection.zRem(JedisConnection.java:2321)
at org.springframework.data.redis.core.DefaultZSetOperations$19.doInRedis(DefaultZSetOperations.java:283)
at org.springframework.data.redis.core.DefaultZSetOperations$19.doInRedis(DefaultZSetOperations.java:280)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:190)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:152)
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:85)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.