AnnotationUtils.findAnnotation() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.util.Assert.notNull
Source
at org.springframework.core.annotation.AnnotationUtils.findAnnotation
Source

Typical Exception Messages

  1. Class must not be null

Origin

Similar

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

  1. Christopher Smithvia Spring JIRA1 year ago
  2. Russ Milesvia Spring JIRA1 year ago
    Error creating bean with name 'com.test.test-gateway: Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchGateway': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Class must not be null
  3. Russ Milesvia Spring JIRA2 years ago
    Error creating bean with name 'com.test.test-gateway: Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchGateway': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Class must not be null
  4. Christopher Smithvia Spring JIRA2 years ago
  5. Unknown authorvia spring.io2 years ago
    Error creating bean with name 'com.test.test-gateway: Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchGateway': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Class must not be null
  6. Error creating bean with name 'authenticationService' defined in URL [jar:file:/D:/Software/Softwares/apache-tomcat-6.0.33/temp/0-scd-web/WEB-INF/lib/security-integration-spring-1.0.1.jar!/META-INF/spring/security-impl-services-bundle-context.xml]: Unsatisfied dependency expressed through bean property 'internalAuthenticationService': : Error creating bean with name 'internalAuthenticationService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Class must not be null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'internalAuthenticationService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Class must not be null