Enhancer.createClass() has thrown a VerifyError

java.lang.VerifyError
Javadoc
Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem. @author unascribed @since JDK1.0
at java.lang.Class.forName0
(Source)
at java.lang.Class.forName
(Source)
at org.springframework.cglib.core.ReflectUtils.defineClass
(Source)
at org.springframework.cglib.core.AbstractClassGenerator.create
(Source)
at org.springframework.cglib.proxy.Enhancer.createHelper
(Source)
at org.springframework.cglib.proxy.Enhancer.createClass
(Source)
6 frames hidden

Typical Exception Messages

  1. (class: XXXServiceSpringMvc$$EnhancerBySpringCGLIB$$744256ce, method: <init> signature: ()V) Illegal type in constant pool

Origin

We have seen this error pattern in the following webpages (2)

  1. Narasimhavia Spring JIRA1 year ago
    (class: XXXServiceSpringMvc$$EnhancerBySpringCGLIB$$744256ce, method: <init> signature: ()V) Illegal type in constant pool
  2. Narasimhavia Spring JIRA2 years ago
    (class: XXXServiceSpringMvc$$EnhancerBySpringCGLIB$$744256ce, method: <init> signature: ()V) Illegal type in constant pool