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 | 4 months ago
  1. 0

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

    GitHub | 4 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
  2. 0
    When you have no build parameters, uncheck 'This build is parameterized'
  3. 0

    ParameterizedTypeImpl cannot be cast to java.lang.Class - HtmlElementDecorator issue

    GitHub | 1 year ago | ham1
    java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception when creating instance for Map<String, SomeType[]> field

    GitHub | 1 year ago | drdamour
    java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl cannot be cast to java.lang.Class

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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