Cannot read Redis response as a list of objects

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.getRawObjectMultiBulkReply
(Source)

Typical Exception Messages

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

Specific cases

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

  1. Deepak Polvia Spring JIRA1 year ago
    java.lang.Long cannot be cast to java.util.List
  2. Mark Paluchvia Spring JIRA1 year ago
    [B cannot be cast to java.util.List
  3. deepakpolvia GitHub1 year ago
    java.lang.Long cannot be cast to java.util.List
  4. Deepak Polvia Spring JIRA1 year ago
    java.lang.Long cannot be cast to java.util.List
  5. java.lang.Long cannot be cast to java.util.List