Response.get() 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.BuilderFactory$5.build
at redis.clients.jedis.BuilderFactory$5.build
at redis.clients.jedis.Response.get
(source)

Typical Exception Messages

  1. java.util.ArrayList cannot be cast to [B

Origin

This error occurs when the build method cannot cast the result to byte[].

java.lang.ClassCastException
1 frames hidden
redis.clients.jedis.BuilderFactory$5.build
8Web pages

Similar

Specific cases

External results for this pattern (3)

  1. Jennifer Hickeyvia Spring JIRA2 months ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace
  2. for5millionvia GitHub3 months ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace
  3. psydellvia GitHub2 years ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace