java.lang.ClassCastException: java.lang.Long cannot be cast to [B

GitHub | inponomarev | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Add your password property to the block in your Tomcat context.xml with JediShardInfo.setPassword(redisPassword)
  2. 0
    samebug tip
    Redis has some limitations of various bulk length, the length of args of the API command MSET can't be bigger than 1024*1024, try to set a limiter on how big your list is.
    via GitHub by zhdaniel
  3. 0
    samebug tip
    ShardedJedis doesn't work with Redis Cluster. Use JedisCluster instead.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 916#271168710

    GitHub | 4 months ago | inponomarev
    java.lang.ClassCastException: java.lang.Long cannot be cast to [B
  6. 0
    samebug tip
    You're experiencing issue #124 in spring session: https://goo.gl/CgfzZ2. You can use the workaround described here: https://goo.gl/pnn7Cc or check the bug page mentioned for disscussion about it!

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Long cannot be cast to [B

      at redis.clients.jedis.Connection.getBinaryBulkReply()
    2. Jedis
      Jedis.hget
      1. redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:216)
      2. redis.clients.jedis.Connection.getBulkReply(Connection.java:205)
      3. redis.clients.jedis.Jedis.hget(Jedis.java:622)
      3 frames