Enhancer.createClass() has thrown a VerifyError

java.lang.VerifyError
at java.lang.Class.forName0
at java.lang.Class.forName
at org.springframework.cglib.core.ReflectUtils.defineClass
at org.springframework.cglib.core.AbstractClassGenerator.create
at org.springframework.cglib.proxy.Enhancer.createHelper
at org.springframework.cglib.proxy.Enhancer.createClass
5 frames hidden

Typical Exception Messages

  1. Error creating bean with name 'totangoFilter' defined in ServletContext resource [/WEB-INF/spring/totango-context.xml]: Cannot resolve reference to bean 'totangoTaskCreator' while setting bean property 'taskCreator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'totangoTaskCreator' defined in ServletContext resource [/WEB-INF/spring/totango-context.xml]: Instantiation of bean failed; nested exception is java.lang.VerifyError: (class: com/panaya/web/totango/ITotangoTaskCreator$$EnhancerBySpringCGLIB$$88f4e56a, method: createTask signature: ()Lcom/panaya/web/totango/ITotangoTask;) Inconsistent stack height 2 != 1
  2. (class: XXXServiceSpringMvc$$EnhancerBySpringCGLIB$$744256ce, method: <init> signature: ()V) Illegal type in constant pool

Origin

Enhancer.createHelper() has thrown a VerifyError

java.lang.VerifyError
4 frames hidden
org.springframework.cglib.proxy.Enhancer.createHelper
1Web pages

External results for this pattern (1)

  1. Narasimhavia Spring JIRA5 months ago
    (class: XXXServiceSpringMvc$$EnhancerBySpringCGLIB$$744256ce, method: <init> signature: ()V) Illegal type in constant pool
    Show stack trace