ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
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.WebappClassLoader.loadClass
at org.apache.catalina.loader.WebappClassLoader.loadClass
java.lang.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.getDeclaredMethods
6 lines hidden

Matching stack traces (27)

  1. Unknown authorvia Google Groups9 months ago
    Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector
  2. Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: xv/profilemanager/exceptions/InvalidPasswordException
  3. Error creating bean with name 'entityManagerFactory' defined in class path resource [spring/business-config.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Failed to introspect bean class [org.apache.commons.dbcp2.BasicDataSource] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool2/PooledObjectFactory
  4. JaccePonvia GitHub1 year ago
    Error creating bean with name 'tephra.bean.factory' defined in URL [jar:file:/E:/tomcat6.0.3/apache-tomcat-6.0.39/webapps/ROOT/WEB-INF/lib/tephra-core-1.0.0-RELEASE.jar!/org/lpw/tephra/bean/BeanFactory.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tephra.bean.container': Unsatisfied dependency expressed through field 'refreshedListeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tephra.ctrl.http.ws.helper': Failed to introspect bean class [org.lpw.tephra.ctrl.http.ws.WsHelperImpl] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: javax/websocket/Session
  5. bkit07via Stack Overflow1 year ago
    Error creating bean with name 'sessionFactory': Failed to introspect bean class [org.springframework.orm.hibernate5.LocalSessionFactoryBean] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
  6. Unknown authorvia knowledge-cess.com1 year ago
    Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/Spring-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
  7. Unknown authorvia knowledge-cess.com1 year ago
    Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/Spring-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
  8. Unknown authorvia knowledge-cess.com1 year ago
    Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/Spring-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
  9. Unknown authorvia knowledge-cess.com1 year ago
    Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/Spring-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
  10. Cyntechvia Stack Overflow1 year ago
    Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/acses]]

See Also

Parent

118 web pages  - Class.getDeclaredMethods() has thrown a NoClassDefFoundError
java.lang.NoClassDefFoundError
    at java.lang.Class.getDeclaredMethods0()
    at java.lang.Class.privateGetDeclaredMethods()
    at java.lang.Class.getDeclaredMethods()
Caused by: java.lang.ClassNotFoundException
    at org.apache.catalina.loader.WebappClassLoader.loadClass()
    at org.apache.catalina.loader.WebappClassLoader.loadClass()

Siblings

  • 32 web pages  - Introspection.getDeclaredMethods() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.apache.catalina.util.Introspection.getDeclaredMethods()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 16 web pages  - StandardAnnotationMetadata.hasAnnotatedMethods() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.springframework.core.type.StandardAnnotationMetadata.hasAnnotatedMethods()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 11 web pages  - BasicPropertyAccessor.getGetterOrNull() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.hibernate.property.BasicPropertyAccessor.getterMethod()
        at org.hibernate.property.BasicPropertyAccessor.getGetterOrNull()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 7 web pages  - StandardContext.start() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations()
        at org.apache.catalina.core.StandardContext.listenerStart()
        at org.apache.catalina.core.StandardContext.start()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 4 web pages  - ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.springframework.util.ReflectionUtils.doWithMethods()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 3 web pages  - AbstractBeanFactory.getBean() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata()
        at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean()
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject()
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton()
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean()
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 3 web pages  - ContextLoaderListener.contextInitialized() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata()
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata()
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition()
        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean()
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject()
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton()
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean()
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean()
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons()
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization()
        at org.springframework.context.support.AbstractApplicationContext.refresh()
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext()
        at org.springframework.web.context.ContextLoader.initWebApplicationContext()
        at org.springframework.web.context.ContextLoaderListener.contextInitialized()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 3 web pages  - ApplicationHandler.access$500() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.glassfish.jersey.server.model.IntrospectionModeller$2.run()
        at java.security.AccessController.doPrivileged()
        at org.glassfish.jersey.server.model.IntrospectionModeller.getAllDeclaredMethods()
        at org.glassfish.jersey.server.model.IntrospectionModeller.checkForNonPublicMethodIssues()
        at org.glassfish.jersey.server.model.IntrospectionModeller.doCreateResourceBuilder()
        at org.glassfish.jersey.server.model.IntrospectionModeller.access$000()
        at org.glassfish.jersey.server.model.IntrospectionModeller$1.call()
        at org.glassfish.jersey.server.model.IntrospectionModeller$1.call()
        at org.glassfish.jersey.internal.Errors.process()
        at org.glassfish.jersey.internal.Errors.process()
        at org.glassfish.jersey.internal.Errors.processWithException()
        at org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder()
        at org.glassfish.jersey.server.model.Resource.from()
        at org.glassfish.jersey.server.ApplicationHandler.initialize()
        at org.glassfish.jersey.server.ApplicationHandler.access$500()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
  • 2 web pages  - FutureTask.run() has thrown an ExecutionException
    java.util.concurrent.ExecutionException
        at java.util.concurrent.FutureTask$Sync.innerGet()
        at java.util.concurrent.FutureTask.get()
        at org.apache.catalina.core.ContainerBase.startInternal()
        at org.apache.catalina.core.StandardHost.startInternal()
        at org.apache.catalina.util.LifecycleBase.start()
        at org.apache.catalina.core.ContainerBase$StartChild.call()
        at org.apache.catalina.core.ContainerBase$StartChild.call()
        at java.util.concurrent.FutureTask$Sync.innerRun()
        at java.util.concurrent.FutureTask.run()
    Caused by: org.apache.catalina.LifecycleException
        at org.apache.catalina.util.LifecycleBase.start()
    Caused by: java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.apache.catalina.startup.WebAnnotationSet.getDeclaredMethods()
        at org.apache.catalina.startup.WebAnnotationSet.loadMethodsAnnotation()
        at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations()
        at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations()
        at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig()
        at org.apache.catalina.startup.ContextConfig.configureStart()
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent()
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent()
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent()
        at org.apache.catalina.core.StandardContext.startInternal()
        at org.apache.catalina.util.LifecycleBase.start()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()

Children

  • 27 web pages  - ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
        at java.lang.Class.getDeclaredMethods()
        at org.springframework.util.ReflectionUtils.getDeclaredMethods()
        at org.springframework.util.ReflectionUtils.doWithMethods()
    Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.loadClass()
        at org.apache.catalina.loader.WebappClassLoader.loadClass()

Typical exception messages

  1. 9 crashes - [Lorg/hibernate/engine/FilterDefinition;
  2. 4 crashes - xv/profilemanager/exceptions/InvalidPasswordException
  3. 3 crashes - org/hibernate/cfg/Configuration
  4. 3 crashes - javax/servlet/http/Part
  5. 2 crashes - org/quartz/impl/triggers/CronTriggerImpl
  6. 2 crashes - org/apache/tiles/request/ApplicationContext
  7. 1 crashes - ar/com/factorit/ml/exception/MercadoLibreException
  8. 1 crashes - com/ibatis/common/xml/NodeletException
  9. 1 crashes - com/mycompany/EntityDao
  10. 1 crashes - PropertiesFinder