Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
ClassCastException net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactor yByCGLIB Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • ClassCastException net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactor yByCGLIB

    We are using:

    -- (m4)
    -- spring 2.5.2
    -- cglib-nodep 2.1_3

    Periodically, we see a java.lang.ClassCastException per below:

    net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactor yByCGLIB$$7fb24d72 incompatible with net.sf.cglib.core.KeyFactory
    at net.sf.cglib.core.KeyFactory$Generator.create(KeyF
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.jav a:117)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.jav a:108)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.jav a:104)
    at net.sf.cglib.proxy.Enhancer.<clinit>( :69)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:196)

    We bounce our server, and the error is resolved. Next install; however, will sometimes recreate error.

    Any ideas?
    Last edited by bmoon; Mar 16th, 2010, 09:15 AM. Reason: in appropriate space in title

  • #2
    Found issue

    We found issue and is a result of bug in cglib when parent_last class loading is used. Opened issue with cglib: ClassCastException in KeyFactory$Generator.create