本文主要是介绍Exception in thread main java.lang.NoClassDefFoundError: org/objectweb/asm/Type,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天在使用cglib代理时报了下面的错:
Exception in thread "main" java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66)
at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
at org.cglib.CGLibProxy.createProxyObject(CGLibProxy.java:17)
at org.cglib.ProxyExe.main(ProxyExe.java:9)
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 5 more
cglib-2.1.3.jar
cglib-nodep-2.1_3.jar
jar包冲突了,去掉cglib-2.1.3.jar 这个Jar包就可以了
这篇关于Exception in thread main java.lang.NoClassDefFoundError: org/objectweb/asm/Type的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!