Cannot read Redis response as a byte array

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

Typical Exception Messages

  1. java.util.ArrayList cannot be cast to [B
  2. java.lang.Long cannot be cast to [B

Specific cases

Solution

zsamboki, 4 months ago

You should update Jedis to a newer version (3.0.0+)

External results for this pattern (9)

  1. hcadavidvia GitHub1 month ago
  2. Jennifer Hickeyvia Spring JIRA1 month ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace
  3. for5millionvia GitHub2 months ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace
  4. Adityanarayan Vaidyavia Google Groups1 year ago
  5. Jennifer Hickeyvia Spring JIRA2 years ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace
  6. DbxDevvia GitHub2 years ago
  7. raghavamvia GitHub2 years ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace
  8. psydellvia GitHub2 years ago
    java.util.ArrayList cannot be cast to [B
    Show stack trace