Exception in thread "main" java.lang.VerifyError

java.lang.VerifyError: (class: groovy/runtime/metaclass/java/util/HashMapMetaClass, method: super$2$invokeMethod signature: (Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object Illegal use of nonvirtual function call
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:118)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:152)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:183)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:206)

 

groovy/runtime/metaclass/java/util/HashMapMetaClass

根据这个路径我们会发现这个类在json.jar包下面,而之所以出现这个原因是json.jar版本太低了。升级json.jar版本即可。

转载于:https://www.cnblogs.com/mgwm/p/8316135.html

你可能感兴趣的:(Exception in thread "main" java.lang.VerifyError)