DefaultGeneratorStrategy.generate() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.cglib.proxy.Enhancer.generateClass
at org.springframework.cglib.core.DefaultGeneratorStrategy.generate

Matching stack traces (8)

  1. chrylisvia GitHub1 year ago
    Cannot subclass final class class java.lang.String
  2. Kazuki Shimizuvia Spring JIRA1 year ago
  3. Kazuki Shimizuvia Spring JIRA2 years ago
  4. Unknown authorvia letmeask.co2 years ago
    Error creating bean with name 'contactService' defined in com.stoxa.springjavaconfig.Config.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.stoxa.springjavaconfig.Service.ContactService]: Factory method 'contactService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in com.stoxa.springjavaconfig.Config.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.stoxa.springjavaconfig.DAO.ContactDAO]: Factory method 'dao' threw exception; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class com.sun.proxy.$Proxy14
  5. Unknown authorvia stackoverflow.com2 years ago
    Error creating bean with name 'contactService' defined in com.stoxa.springjavaconfig.Config.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.stoxa.springjavaconfig.Service.ContactService]: Factory method 'contactService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in com.stoxa.springjavaconfig.Config.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.stoxa.springjavaconfig.DAO.ContactDAO]: Factory method 'dao' threw exception; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class com.sun.proxy.$Proxy14
  6. chrylisvia GitHub2 years ago
    Cannot subclass final class class java.lang.String

See Also

Parent

25 web pages  - Enhancer.generateClass() has thrown an IllegalArgumentException
java.lang.IllegalArgumentException
    at org.springframework.cglib.proxy.Enhancer.generateClass()

Siblings

Children

  • 7 web pages  - Enhancer.createClass() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.cglib.proxy.Enhancer.generateClass()
        at org.springframework.cglib.core.DefaultGeneratorStrategy.generate()
        at org.springframework.cglib.core.AbstractClassGenerator.create()
        at org.springframework.cglib.proxy.Enhancer.createHelper()
        at org.springframework.cglib.proxy.Enhancer.createClass()

Typical exception messages

  1. 6 crashes - Cannot subclass final class class java.lang.String
  2. 2 crashes - Cannot subclass final class class com.sun.proxy.$Proxy14
  3. 1 crashes - Cannot subclass final class int
  4. 1 crashes - Cannot subclass final class void
  5. 1 crashes - Cannot subclass final class java.lang.String