org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bindingService' defined in class path resource [org/springframework/cloud/stream/config/ChannelBindingServiceConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.stream.binding.ChannelBindingService]: Factory method 'bindingService' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/validation/Validator

Stack Overflow | KWP | 4 months ago
  1. 0

    Error creating bean with name 'bindingService' - Eureka & Bus AMQP

    Stack Overflow | 4 months ago | KWP
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bindingService' defined in class path resource [org/springframework/cloud/stream/config/ChannelBindingServiceConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.stream.binding.ChannelBindingService]: Factory method 'bindingService' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/validation/Validator
  2. 0

    Setting ant.jar / ANT_HOME / ANT Classpath - ANT not working

    Stack Overflow | 4 years ago | Axolotl
    java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
  3. 0

    ANT throwing exception

    Stack Overflow | 3 years ago | Deepak_Sharma
    java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    exception while using excel workbook

    Stack Overflow | 2 years ago | Pooja Mahawar
    java.lang.NoClassDefFoundError: org/apache/poi/UnsupportedFileFormatException
  6. 0

    Class io.confluent.connect.avro.AvroConverter could not be found

    GitHub | 2 months ago | renukaradhya
    java.lang.NoClassDefFoundError: org/apache/kafka/connect/storage/Converter
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.validation.Validator

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(Unknown Source)[na:1.8.0_73]
    2. java.lang.ClassLoader.loadClass(Unknown Source)[na:1.8.0_73]
    3. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)[na:1.8.0_73]
    4. java.lang.ClassLoader.loadClass(Unknown Source)[na:1.8.0_73]
    5. java.lang.ClassLoader.defineClass1(Native Method)[na:1.8.0_73]
    6. java.lang.ClassLoader.defineClass(Unknown Source)[na:1.8.0_73]
    7. java.security.SecureClassLoader.defineClass(Unknown Source)[na:1.8.0_73]
    8. java.net.URLClassLoader.defineClass(Unknown Source)[na:1.8.0_73]
    9. java.net.URLClassLoader.access$100(Unknown Source)[na:1.8.0_73]
    10. java.net.URLClassLoader$1.run(Unknown Source)[na:1.8.0_73]
    11. java.net.URLClassLoader$1.run(Unknown Source)[na:1.8.0_73]
    12. java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_73]
    13. java.net.URLClassLoader.findClass(Unknown Source)[na:1.8.0_73]
    14. java.lang.ClassLoader.loadClass(Unknown Source)[na:1.8.0_73]
    15. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)[na:1.8.0_73]
    16. java.lang.ClassLoader.loadClass(Unknown Source)[na:1.8.0_73]
    16 frames
  3. org.springframework.cloud
    ChannelBindingServiceConfiguration$$EnhancerBySpringCGLIB$$dcfa32f2$$FastClassBySpringCGLIB$$641fb65d.invoke
    1. org.springframework.cloud.stream.binding.ChannelBindingService.<init>(ChannelBindingService.java:71)[spring-cloud-stream-1.0.2.RELEASE.jar:1.0.2.RELEASE]
    2. org.springframework.cloud.stream.config.ChannelBindingServiceConfiguration.bindingService(ChannelBindingServiceConfiguration.java:105)[spring-cloud-stream-1.0.2.RELEASE.jar:1.0.2.RELEASE]
    3. org.springframework.cloud.stream.config.ChannelBindingServiceConfiguration$$EnhancerBySpringCGLIB$$dcfa32f2.CGLIB$bindingService$1(<generated>)[spring-cloud-stream-1.0.2.RELEASE.jar:1.0.2.RELEASE]
    4. org.springframework.cloud.stream.config.ChannelBindingServiceConfiguration$$EnhancerBySpringCGLIB$$dcfa32f2$$FastClassBySpringCGLIB$$641fb65d.invoke(<generated>)[spring-cloud-stream-1.0.2.RELEASE.jar:1.0.2.RELEASE]
    4 frames
  4. Spring Core
    MethodProxy.invokeSuper
    1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  5. Spring Context
    ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
    1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  6. org.springframework.cloud
    ChannelBindingServiceConfiguration$$EnhancerBySpringCGLIB$$dcfa32f2.bindingService
    1. org.springframework.cloud.stream.config.ChannelBindingServiceConfiguration$$EnhancerBySpringCGLIB$$dcfa32f2.bindingService(<generated>)[spring-cloud-stream-1.0.2.RELEASE.jar:1.0.2.RELEASE]
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_73]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_73]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_73]
    4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.8.0_73]
    4 frames
  8. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    11 frames
  9. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2 frames
  10. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    6 frames
  11. com.dummy
    DummyProjectApplication.main
    1. com.dummy.DummyProjectApplication.main(DummyProjectApplication.java:10)[classes/:na]
    1 frame