java.lang.ClassCastException: Cannot cast my.Class$$EnhancerLAZY$$c703f20 to my.Class

GitHub | gabor-farkas | 8 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

    LazyModel - Static cache is causing problems in appservers

    GitHub | 8 months ago | gabor-farkas
    java.lang.ClassCastException: Cannot cast my.Class$$EnhancerLAZY$$c703f20 to my.Class
  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 | 2 years 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 | 2 years ago | milimetric
    java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup to org.apache.logging.log4j.core.lookup.StrLookup

  1. tvrmsmith 1 times, last 1 month ago
  2. filpgame 2 times, last 2 months ago
  3. rp 1 times, last 4 months ago
  4. kid 11 times, last 5 months ago
  5. iridic 3 times, last 5 months ago
2 more registered users
18 unregistered visitors
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 my.Class$$EnhancerLAZY$$c703f20 to my.Class

    at java.lang.Class.cast()
  2. Java RT
    Class.cast
    1. java.lang.Class.cast(Class.java:3369)
    1 frame
  3. org.wicketstuff.lazymodel
    LazyModel.from
    1. org.wicketstuff.lazymodel.reflect.Evaluation.proxy(Evaluation.java:139)
    2. org.wicketstuff.lazymodel.LazyModel.from(LazyModel.java:538)
    2 frames