使用CGLIB进行动态代理时报了如下错误
Exception in thread "main" java.lang.ExceptionInInitializerError
at common.proxy.CglibProxyExample.getProxy(CglibProxyExample.java:18)
at test.main(test.java:12)
Caused by: java.lang.IllegalStateException: Unable to load cache item
at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:79)
at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:130)
at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:315)
at org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:237)
at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:184)
at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:160)
at org.springframework.cglib.proxy.Enhancer.<clinit>(Enhancer.java:104)
... 2 more
Caused by: j