java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List

GitHub | princessd8251 | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 632#249606924

    GitHub | 8 months ago | princessd8251
    java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List
  2. 0

    ClassCastException error happen when use sentinel server mode

    GitHub | 8 months ago | princessd8251
    java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.HashMap cannot be cast to java.util.List

      at org.redisson.connection.SentinelConnectionManager.<init>()
    2. Redisson
      SentinelConnectionManager.<init>
      1. org.redisson.connection.SentinelConnectionManager.<init>(SentinelConnectionManager.java:83)
      1 frame
    3. org.redisson.config
      ConfigSupport.createConnectionManager
      1. org.redisson.config.ConfigSupport.createConnectionManager(ConfigSupport.java:169)
      1 frame
    4. Redisson
      Redisson.create
      1. org.redisson.Redisson.<init>(Redisson.java:103)
      2. org.redisson.Redisson.create(Redisson.java:133)
      2 frames
    5. com.coupang.main
      RedissonTest.main
      1. com.coupang.main.RedissonTest.main(RedissonTest.java:17)
      1 frame