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

Similar

We have seen this error pattern in the following webpages (2)

  1. Chi Mavia Stack Overflow1 year ago
    java.lang.Long cannot be cast to [B
  2. inponomarevvia GitHub1 year ago
    java.lang.Long cannot be cast to [B