主题:Found interface org.objectweb.asm.MethodVisitor, b

wa114d 2020年07月07日 62
java.lang.IncompatibleClassChangeError: Found interface org.objectweb.asm.MethodVisitor, but class was expected
 at org.beetl.core.om.asm.EnhanceClassGenerator.generateDefaultConstruct(EnhanceClassGenerator.java:179)
 at org.beetl.core.om.asm.EnhanceClassGenerator.generate(EnhanceClassGenerator.java:163)
 at org.beetl.core.om.asm.EnhanceClassGenerator.generate(EnhanceClassGenerator.java:141)
 at org.beetl.core.om.asm.ASMBeanFactory.generateBean(ASMBeanFactory.java:56)
 at org.beetl.core.om.AsmAAFactory.registerClass(AsmAAFactory.java:20)
 at org.beetl.core.om.DefaultAAFactory.buildFiledAccessor(DefaultAAFactory.java:99)
 at org.beetl.core.om.AABuilder.buildFiledAccessor(AABuilder.java:50)
 at org.beetl.core.statement.VarRef.getValue(VarRef.java:158)
 at org.beetl.core.statement.VarRef.evaluate(VarRef.java:67)
 at org.beetl.core.statement.FunctionExpression.evaluate(FunctionExpression.java:79)
 at org.beetl.sql.core.engine.SQLPlaceholderST.execute(SQLPlaceholderST.java:42)
 at org.beetl.core.statement.BlockStatement.execute(BlockStatement.java:58)
 at org.beetl.core.tag.Tag.doBodyRender(Tag.java:73)
 at org.beetl.core.tag.Tag.getBodyContent(Tag.java:85)
 at org.beetl.sql.core.engine.TrimTag.buildTrimContent(TrimTag.java:83)
 at org.beetl.sql.core.engine.TrimTag.render(TrimTag.java:59)
 at org.beetl.core.statement.TagStatement.runTag(TagStatement.java:95)
 at org.beetl.core.statement.TagStatement.execute(TagStatement.java:78)
 at org.beetl.core.statement.Program.run(Program.java:69)
 at org.beetl.core.statement.Program.execute(Program.java:61)
 at org.beetl.core.Template.renderTo(Template.java:143)
 at org.beetl.core.Template.renderTo(Template.java:91)
 at org.beetl.core.Template.render(Template.java:79)
 at org.beetl.sql.core.SQLScript.run(SQLScript.java:88)
 at org.beetl.sql.core.SQLScript.run(SQLScript.java:64)
 at org.beetl.sql.core.SQLScript.insert(SQLScript.java:155)
 at org.beetl.sql.core.SQLManager.generalInsert(SQLManager.java:1129)
 at org.beetl.sql.core.SQLManager.insertTemplate(SQLManager.java:1089)

在保存bean的时候报这个错误,用的beetsql版本是2.12.9,用的asm版本是5.2,在全部的jar包中只有fastjson中定义了MethodVisitor是个接口,但是包名不一样,将fastjson包去掉后依旧不可以。

代码就是简单的调用了insetTemplate方法