Jedis.hget() has thrown a ClassCastException

java.lang.ClassCastException
Javadoc
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:
    Object x = new Integer(0);
    System.out.println((String)x);
@author unascribed @since JDK1.0
at redis.clients.jedis.Connection.getBinaryBulkReply
(source)
at redis.clients.jedis.Connection.getBulkReply
(source)
at redis.clients.jedis.Jedis.hget
(source)

Typical Exception Messages

  1. java.lang.Long cannot be cast to [B

Origin

Cannot read Redis bulk reply as a byte array

java.lang.ClassCastException
1 frames hidden
redis.clients.jedis.Connection.getBulkReply
12Web pages

Similar

External results for this pattern (2)

  1. Chi Mavia Stack Overflow5 months ago
    java.lang.Long cannot be cast to [B
    Show stack trace
  2. inponomarevvia GitHub1 year ago
    java.lang.Long cannot be cast to [B
    Show stack trace