com.hazelcast.nio.serialization.HazelcastSerializationException: Problem while reading DataSerializable, namespace: 0, id: 0, class: 'com.hazelcast.config.CacheEvictionConfig', exception: java.lang.Class cannot be cast to com.hazelcast.internal.eviction.EvictionPolicyComparator

GitHub | vbekiaris | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Hazelcast 3.7.x client cannot obtain cache proxy from 3.6.x cluster

    GitHub | 6 months ago | vbekiaris
    com.hazelcast.nio.serialization.HazelcastSerializationException: Problem while reading DataSerializable, namespace: 0, id: 0, class: 'com.hazelcast.config.CacheEvictionConfig', exception: java.lang.Class cannot be cast to com.hazelcast.internal.eviction.EvictionPolicyComparator

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Class cannot be cast to com.hazelcast.internal.eviction.EvictionPolicyComparator

      at com.hazelcast.config.EvictionConfig.readData()
    2. hazelcast
      EvictionConfig.readData
      1. com.hazelcast.config.EvictionConfig.readData(EvictionConfig.java:264)
      1 frame
    3. com.hazelcast.internal
      ByteArrayObjectDataInput.readObject
      1. com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:127)
      2. com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:52)
      3. com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:46)
      4. com.hazelcast.internal.serialization.impl.AbstractSerializationService.readObject(AbstractSerializationService.java:216)
      5. com.hazelcast.internal.serialization.impl.ByteArrayObjectDataInput.readObject(ByteArrayObjectDataInput.java:600)
      5 frames
    4. hazelcast
      CacheConfig.readData
      1. com.hazelcast.config.CacheConfig.readData(CacheConfig.java:566)
      1 frame
    5. com.hazelcast.internal
      AbstractSerializationService.toObject
      1. com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:127)
      2. com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:52)
      3. com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:46)
      4. com.hazelcast.internal.serialization.impl.AbstractSerializationService.toObject(AbstractSerializationService.java:172)
      4 frames
    6. hazelcast-client
      HazelcastClientCacheManager.findCacheConfig
      1. com.hazelcast.client.cache.impl.ClientCacheHelper.getCacheConfig(ClientCacheHelper.java:69)
      2. com.hazelcast.client.cache.impl.HazelcastClientCacheManager.getCacheConfig(HazelcastClientCacheManager.java:107)
      3. com.hazelcast.client.cache.impl.HazelcastClientCacheManager.findCacheConfig(HazelcastClientCacheManager.java:131)
      3 frames
    7. Hazelcast
      AbstractHazelcastCacheManager.getCache
      1. com.hazelcast.cache.impl.AbstractHazelcastCacheManager.getCacheUnchecked(AbstractHazelcastCacheManager.java:245)
      2. com.hazelcast.cache.impl.AbstractHazelcastCacheManager.getCache(AbstractHazelcastCacheManager.java:186)
      3. com.hazelcast.cache.impl.AbstractHazelcastCacheManager.getCache(AbstractHazelcastCacheManager.java:67)
      3 frames
    8. Unknown
      CacheClientBootstrap.main
      1. CacheClientBootstrap.main(CacheClientBootstrap.java:35)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    10. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame