StandardAnnotationMetadata.getAnnotatedMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
Javadoc
Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.

The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found. @author unascribed @since JDK1.0

at java.lang.Class.getDeclaredMethods0
(source)
at java.lang.Class.privateGetDeclaredMethods
(source)
at java.lang.Class.getDeclaredMethods
(source)
at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods
(source)
3 frames hidden

Typical Exception Messages

  1. javax/servlet/ServletContext
  2. org/springframework/data/repository/support/RepositoryInvokerFactory
  3. org/apache/thrift/TException

Origin

Class.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
2 frames hidden
java.lang.Class.getDeclaredMethods
233Web pages

Similar

Specific cases

External results for this pattern (2)