Results 1 to 2 of 2

Thread: ClassCastException net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactor yByCGLIB

  1. #1
    Join Date
    Oct 2008
    Posts
    6

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

    We are using:

    -- org.springframework.config.java.jar (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 actory.java:145)
    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>(Enhancer.java :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 at 08:15 AM. Reason: in appropriate space in title

  2. #2
    Join Date
    Oct 2008
    Posts
    6

    Default 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •