ReflectionUtils.doWithLocalFields() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
Javadoc
Thrown when an application tries to load in a class through its string name using:
  • The forName method in class Class.
  • The findSystemClass method in class ClassLoader .
  • The loadClass method in class ClassLoader.

but no definition for the class with the specified name could be found.

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "optional exception that was raised while loading the class" that may be provided at construction time and accessed via the {@link #getException()} method is now known as the cause, and may be accessed via the {@link Throwable#getCause()} method, as well as the aforementioned "legacy method." @author unascribed @see java.lang.Class#forName(java.lang.String) @see java.lang.ClassLoader#findSystemClass(java.lang.String) @see java.lang.ClassLoader#loadClass(java.lang.String, boolean) @since JDK1.0

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass
(source)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass
(source)
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.getDeclaredFields0
(source)
at java.lang.Class.privateGetDeclaredFields
(source)
at java.lang.Class.getDeclaredFields
(source)
at org.springframework.util.ReflectionUtils.getDeclaredFields
(source)
at org.springframework.util.ReflectionUtils.doWithLocalFields
(source)
6 frames hidden

Typical Exception Messages

  1. java.lang.IllegalStateException: Failed to introspect bean class [com.saga.opencms.habla.view.AltaPropuestaHandler] for persistence metadata: could not find class that it depends on
  2. Error creating bean with name 'fileUploadController' defined in file [C:\D\apache-tomcat-8.0.15\wtpwebapps\fvp-web\WEB-INF\classes\com\wellmanage\fvp\web\controller\FileUploadController.class]: Post-processing failed of bean type [class com.wellmanage.fvp.web.controller.FileUploadController] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.wellmanage.fvp.web.controller.FileUploadController] for persistence metadata: could not find class that it depends on
  3. Error creating bean with name 'categoryController' defined in file [C:\Users\MRuser\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\FurnitureShopFrontend\WEB-INF\classes\com\furniture\furnitureshop\controller\CategoryController.class]: Post-processing failed of bean type [class com.furniture.furnitureshop.controller.CategoryController] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.furniture.furnitureshop.controller.CategoryController] for persistence metadata: could not find class that it depends on
  4. Error creating bean with name 'addressController' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 8.0\wtpwebapps\croz-web\WEB-INF\classes\hr\croz\bspoljaric\controller\AddressController.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [hr.croz.bspoljaric.controller.AddressController] for resource metadata: could not find class that it depends on
  5. Error creating bean with name 'pageController' defined in file [F:\workspace-sts-practice\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\onlineshopping\WEB-INF\classes\com\chandan\onlineshopping\controller\PageController.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.chandan.onlineshopping.controller.PageController] for resource metadata: could not find class that it depends on

Origin

Class.getDeclaredFields() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
4 frames hidden
java.lang.Class.getDeclaredFields
5Web pages

Similar

Specific cases

External results for this pattern (2)

  1. Brnsvia Stack Overflow4 months ago
    Error creating bean with name 'addressController' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 8.0\wtpwebapps\croz-web\WEB-INF\classes\hr\croz\bspoljaric\controller\AddressController.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [hr.croz.bspoljaric.controller.AddressController] for resource metadata: could not find class that it depends on
    Show stack trace
  2. Error creating bean with name 'pageController' defined in file [F:\workspace-sts-practice\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\onlineshopping\WEB-INF\classes\com\chandan\onlineshopping\controller\PageController.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.chandan.onlineshopping.controller.PageController] for resource metadata: could not find class that it depends on
    Show stack trace