Spring Framework - java.lang.IncompatibleClassChangeError: class net.sf.cglib.core.DebuggingClassWriter 有接口 org.objectweb.asm.Cl
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12449074/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Spring Framework - java.lang.IncompatibleClassChangeError: class net.sf.cglib.core.DebuggingClassWriter has interface org.objectweb.asm.ClassVisitor
提问by Daemon
While I was trying to run a simple static pointcut example in Spring on Eclipse, I came across this error message :-
当我尝试在 Eclipse 上的 Spring 中运行一个简单的静态切入点示例时,我遇到了以下错误消息:-
java.lang.IncompatibleClassChangeError: class net.sf.cglib.core.DebuggingClassWriter has interface org.objectweb.asm.ClassVisitor
java.lang.IncompatibleClassChangeError: class net.sf.cglib.core.DebuggingClassWriter 有接口 org.objectweb.asm.ClassVisitor
回答by Alexei Kaigorodov
First, find out which cglib version is compatible with asm-3.1. Second, use only compatible version. Now you use 2 cglib jars of different versions (which is always bad).
首先,找出与 asm-3.1 兼容的 cglib 版本。其次,仅使用兼容版本。现在您使用 2 个不同版本的 cglib jar(这总是不好的)。