com.hazelcast.core.HazelcastException: java.lang.ClassCastException: Cannot cast com.hazelcast.collection.impl.collection.CollectionPortableHook to com.hazelcast.internal.serialization.PortableHook

Google Groups | Unknown author | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Creating ObjectDataOutput for Unit Testing Stream Serializers in 3.7

    Google Groups | 6 months ago | Unknown author
    com.hazelcast.core.HazelcastException: java.lang.ClassCastException: Cannot cast com.hazelcast.collection.impl.collection.CollectionPortableHook to com.hazelcast.internal.serialization.PortableHook
  2. 0

    ClassCastException in Spray Client

    Stack Overflow | 2 years ago | Arpit
    java.lang.ClassCastException: Cannot cast akka.io.Tcp$ErrorClosed to spray.http.HttpResponse
  3. 0

    Gatekeeper fails to update config with cast exception

    GitHub | 2 years ago | CoreyBehrends
    java.lang.ClassCastException: Cannot cast java.util.LinkedHashMap to java.lang.Void
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassCastException exception when running Robolectric test with Power Mock on multiple files

    Stack Overflow | 1 year ago | benjosantony
    org.mockito.exceptions.base.MockitoException: ClassCastException occurred while creating the mockito proxy : class to mock : 'com.squareup.otto.Bus', loaded by classloader : 'org.robolectric.internal.bytecode.InstrumentingClassLoader@1593948d' created class : 'com.squareup.otto.Bus$$EnhancerByMockitoWithCGLIB$$82a3b196', loaded by classloader : 'org.robolectric.internal.bytecode.InstrumentingClassLoader@1593948d' proxy instance class : 'com.squareup.otto.Bus$$EnhancerByMockitoWithCGLIB$$82a3b196', loaded by classloader : 'org.mockito.internal.creation.util.SearchingClassLoader@618ff5c2' instance creation by : ObjenesisInstantiator You might experience classloading issues, disabling the Objenesis cache *might* help (see MockitoConfiguration)
  6. 0

    GitHub comment 1852#150709085

    GitHub | 1 year ago | milimetric
    java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup to org.apache.logging.log4j.core.lookup.StrLookup
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

    Cannot cast com.hazelcast.collection.impl.collection.CollectionPortableHook to com.hazelcast.internal.serialization.PortableHook

    at java.lang.Class.cast()
  2. Java RT
    Class.cast
    1. java.lang.Class.cast(Class.java:3369)
    1 frame
  3. hazelcast
    ServiceLoader$NewInstanceIterator.next
    1. com.hazelcast.util.ServiceLoader$NewInstanceIterator.next(ServiceLoader.java:336)
    1 frame
  4. com.hazelcast.internal
    DefaultSerializationServiceBuilder.build
    1. com.hazelcast.internal.serialization.impl.PortableHookLoader.load(PortableHookLoader.java:51)
    2. com.hazelcast.internal.serialization.impl.PortableHookLoader.<init>(PortableHookLoader.java:44)
    3. com.hazelcast.internal.serialization.impl.SerializationServiceV1.<init>(SerializationServiceV1.java:88)
    4. com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.createSerializationService(DefaultSerializationServiceBuilder.java:264)
    5. com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.build(DefaultSerializationServiceBuilder.java:218)
    5 frames
  5. com.kryptnostic.rhizome
    BaseSerializerTest.testSerializeDeserialize
    1. com.kryptnostic.rhizome.hazelcast.serializers.BaseSerializerTest.testSerializeDeserialize(BaseSerializerTest.java:40)
    1 frame
  6. 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
  7. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    13 frames
  8. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    1 frame
  9. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    5 frames