ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

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
at java.lang.Class.privateGetDeclaredMethods
at java.lang.Class.getDeclaredMethods
at org.springframework.util.ReflectionUtils.doWithMethods
3 frames hidden

Typical Exception Messages

  1. com/mongodb/DB
  2. org/apache/spark/SparkContext
  3. org/springframework/orm/hibernate3/HibernateTemplate
  4. org/test/MyClass
  5. org/slf4j/Logger
  6. org/aspectj/lang/ NoAspectBoundException
  7. org/aspectj/lang/JoinPoint
  8. javax/jms/Message
  9. /com/test/entities/MyEntity


Class.getDeclaredMethods() has thrown a NoClassDefFoundError

2 frames hidden
239Web pages


Specific cases

External results for this pattern (10)

  1. Unknown authorvia java2s.com1 month ago
  2. Damian Goldavia Google Groups1 month ago
    org/aspectj/lang/ NoAspectBoundException
    Show stack trace
  3. sven.pankovia Google Groups1 month ago
  4. Rannickvia Stack Overflow2 months ago
    Show stack trace
  5. Bobby Andersonvia Coderanch1 year ago
    Show stack trace
  6. 814464via Oracle Community1 year ago
    Show stack trace
  7. user335369 - oraclevia Oracle Community2 years ago
    Show stack trace
  8. kulkeezvia GitHub2 years ago